diff options
author | ven <vendethiel@hotmail.fr> | 2015-11-08 21:38:30 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2015-11-08 21:38:30 +0100 |
commit | 3cbe135ae210ebf9744caa6f299302f42f87fbc2 (patch) | |
tree | e2f1a284d7f25a4715c0169a436a31a4c7a0b241 | |
parent | a1ed02d6fad2b39137f52c6a04264a59e237d747 (diff) | |
parent | 33628dca5cb4367cbbad1e4f48ddab0630b03330 (diff) |
Merge pull request #2008 from chris-martin/elixir-try
elixir: add eval results to try-rescue examples
-rw-r--r-- | elixir.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown index eedeb227..720e080c 100644 --- a/elixir.html.markdown +++ b/elixir.html.markdown @@ -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 |