Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertMoscow committed Jul 9, 2013
1 parent 7555578 commit 26adba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elixir.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ and many more features.
# Atoms, that are literals, a constant with name. They start with `:`.
:hello # atom

# Tuples that are stored contigously in memory.
# Tuples that are stored contiguously in memory.
{1,2,3} # tuple

# We can access a tuple element with the `elem` function:
Expand All @@ -47,7 +47,7 @@ elem({1, 2, 3}, 0) #=> 1
head #=> 1
tail #=> [2,3]

# In elixir, just like in erlang, the `=` denotes pattern matching and
# In elixir, just like in Erlang, the `=` denotes pattern matching and
# not an assignment.
#
# This means that the left-hand side (pattern) is matched against a
Expand Down Expand Up @@ -170,7 +170,7 @@ case {:one, :two} do
"This will match any value"
end

# It's common practive to assign a value to `_` if we don't need it.
# It's common practice to assign a value to `_` if we don't need it.
# For example, if only the head of a list matters to us:
[head | _] = [1,2,3]
head #=> 1
Expand Down

0 comments on commit 26adba1

Please sign in to comment.