Skip to content

Commit cfcf0ba

Browse files
committed
Fix typos in Erlang libraries chapter
1 parent 26ea301 commit cfcf0ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: getting-started/erlang-libraries.markdown

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: Erlang libraries
1010
Elixir provides excellent interoperability with Erlang libraries. In fact,
1111
Elixir discourages simply wrapping Erlang libraries in favor of directly
1212
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.
1414

1515
As you grow more proficient in Elixir, you may want to explore the Erlang
1616
[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.
3535
## Formatted text output
3636

3737
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
3939
result:
4040

4141
```iex
@@ -57,7 +57,7 @@ iex> to_string :io_lib.format("Pi is approximately given by:~10.3f~n", [:math.pi
5757
"Pi is approximately given by: 3.142\n"
5858
```
5959

60-
Also note that Erlangs formatting functions require special attention to
60+
Also note that Erlang's formatting functions require special attention to
6161
Unicode handling.
6262

6363
## The calendar module
@@ -113,7 +113,6 @@ Given three vertices, find the shortest path from the first to the last.
113113
```iex
114114
iex> digraph = :digraph.new()
115115
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)
117116
iex> [v0, v1, v2] = (for c <- coords, do: :digraph.add_vertex(digraph, c))
118117
iex> :digraph.add_edge(digraph, v0, v1)
119118
iex> :digraph.add_edge(digraph, v1, v2)

0 commit comments

Comments
 (0)