@@ -10,7 +10,7 @@ title: Erlang libraries
10
10
Elixir provides excellent interoperability with Erlang libraries. In fact,
11
11
Elixir discourages simply wrapping Erlang libraries in favor of directly
12
12
interfacing with Erlang code. In this section we will present some of the
13
- most common and useful Erlang functionality that are not found in Elixir.
13
+ most common and useful Erlang functionality that is not found in Elixir.
14
14
15
15
As you grow more proficient in Elixir, you may want to explore the Erlang
16
16
[ STDLIB Reference Manual] ( http://erlang.org/doc/apps/stdlib/index.html ) in more
@@ -35,7 +35,7 @@ codepoints, while `:binary` deals with raw data bytes.
35
35
## Formatted text output
36
36
37
37
Elixir does not contain a function similar to ` printf ` found in C and other
38
- languages. An option is to rely on string interpolation to achieve similar
38
+ languages. An option is to rely on string interpolation to achieve a similar
39
39
result:
40
40
41
41
``` iex
@@ -57,7 +57,7 @@ iex> to_string :io_lib.format("Pi is approximately given by:~10.3f~n", [:math.pi
57
57
"Pi is approximately given by: 3.142\n"
58
58
```
59
59
60
- Also note that Erlangs formatting functions require special attention to
60
+ Also note that Erlang's formatting functions require special attention to
61
61
Unicode handling.
62
62
63
63
## The calendar module
@@ -113,7 +113,6 @@ Given three vertices, find the shortest path from the first to the last.
113
113
``` iex
114
114
iex> digraph = :digraph.new()
115
115
iex> coords = [{0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}]
116
- iex> for c <- coords, do: :digraph.add_vertex(digraph, c)
117
116
iex> [v0, v1, v2] = (for c <- coords, do: :digraph.add_vertex(digraph, c))
118
117
iex> :digraph.add_edge(digraph, v0, v1)
119
118
iex> :digraph.add_edge(digraph, v1, v2)
0 commit comments