diff options
author | Lidenburg <richard.lindberg1997@gmail.com> | 2016-03-15 18:56:44 +0100 |
---|---|---|
committer | Lidenburg <richard.lindberg1997@gmail.com> | 2016-03-15 18:56:44 +0100 |
commit | ce5183bd3d38094401ec37b691fb11c08ec3a07f (patch) | |
tree | 6227674189be0b6ae719f956c800de98daa4b283 /elixir.html.markdown | |
parent | c38933a4d187bb2f7a13b1716e9c6d884b390e89 (diff) | |
parent | 2095ad9cf5f3243296be5a7232dc52ae03603f49 (diff) |
Merge remote-tracking branch 'refs/remotes/adambard/master'
Diffstat (limited to 'elixir.html.markdown')
-rw-r--r-- | elixir.html.markdown | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown index eedeb227..eb708576 100644 --- a/elixir.html.markdown +++ b/elixir.html.markdown @@ -170,7 +170,7 @@ case {:one, :two} do {:four, :five} -> "This won't match" {:one, x} -> - "This will match and bind `x` to `:two`" + "This will match and bind `x` to `:two` in this clause" _ -> "This will match any value" end @@ -343,6 +343,7 @@ rescue RuntimeError -> "rescued a runtime error" _error -> "this will rescue any error" end +#=> "rescued a runtime error" # All exceptions have a message try do @@ -351,6 +352,7 @@ rescue x in [RuntimeError] -> x.message end +#=> "some error" ## --------------------------- ## -- Concurrency @@ -409,7 +411,7 @@ self() #=> #PID<0.27.0> ## References -* [Getting started guide](http://elixir-lang.org/getting_started/1.html) from [elixir webpage](http://elixir-lang.org) +* [Getting started guide](http://elixir-lang.org/getting-started/introduction.html) from the [Elixir website](http://elixir-lang.org) * [Elixir Documentation](http://elixir-lang.org/docs/master/) * ["Programming Elixir"](https://pragprog.com/book/elixir/programming-elixir) by Dave Thomas * [Elixir Cheat Sheet](http://media.pragprog.com/titles/elixir/ElixirCheat.pdf) |