Skip to content

Commit 073a35e

Browse files
committed
Fix a couple of typos in chapter 20
Closes elixir-lang#430
1 parent 64fe546 commit 073a35e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getting_started/20.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Elixir is a dynamically typed language, so all types in Elixir are inferred by t
1717

1818
### 20.1.1 Function specifications
1919

20-
By default, Elixir provides some basic types, such as `integer` or `pid`, as well as more complex types: for example, the `round/1` function, which rounds a float to its nearest integer, takes a `number` as an argument (an `integer` or a `float`) and returns a `float`. As you can see [in its documentation](http://elixir-lang.org/docs/stable/elixir/Kernel.html#round/1), `round/1`'s typed signature is written as:
20+
By default, Elixir provides some basic types, such as `integer` or `pid`, as well as more complex types: for example, the `round/1` function, which rounds a float to its nearest integer, takes a `number` as an argument (an `integer` or a `float`) and returns an `integer`. As you can see [in its documentation](http://elixir-lang.org/docs/stable/elixir/Kernel.html#round/1), `round/1`'s typed signature is written as:
2121

2222
```
2323
round(number) :: integer
@@ -36,7 +36,7 @@ Elixir supports compound types as well. For example, a list of integers has type
3636

3737
While Elixir provides a lot of useful built-in types, it's convenient to define custom types when appropriate. This can be done when defining modules modules through the `@type` directive.
3838

39-
Say we have a `RudeCalculator` module, which performs the usual arithmetic operations (sum, product and so on) but, instead of returning numbers, it returns tuples with the result of an operation as the first element and a random offense as the second element.
39+
Say we have a `LousyCalculator` module, which performs the usual arithmetic operations (sum, product and so on) but, instead of returning numbers, it returns tuples with the result of an operation as the first element and a random offense as the second element.
4040

4141
```elixir
4242
defmodule LousyCalculator do

0 commit comments

Comments
 (0)