Skip to content

Commit

Permalink
Typo/Formatting fix (elixirschool#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
arelangi authored and nscyclone committed Aug 9, 2016
1 parent 4d7e1d5 commit 0b7e3bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lessons/basics/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ When using lists it is common to work with a list's head and tail. The head is

```elixir
iex> hd [3.14, :pie, "Apple"]
3.14ex> tl [3.14, :pie, "Apple"]
3.14
iex> tl [3.14, :pie, "Apple"]
[:pie, "Apple"]
```

Expand All @@ -67,7 +68,8 @@ In addition to the aforementioned functions, you can use [pattern matching](../p
iex> [h|t] = [3.14, :pie, "Apple"]
[3.14, :pie, "Apple"]
iex> h
3.14ex> t
3.14
iex> t
[:pie, "Apple"]
```

Expand Down

0 comments on commit 0b7e3bb

Please sign in to comment.