diff options
author | Chris Martin <ch.martin@gmail.com> | 2015-11-04 23:28:26 -0500 |
---|---|---|
committer | Chris Martin <ch.martin@gmail.com> | 2015-11-04 23:28:26 -0500 |
commit | 33628dca5cb4367cbbad1e4f48ddab0630b03330 (patch) | |
tree | 4828dc180e934f43d3d3e32fd03ca8d7c0c03256 | |
parent | 8799f11b89c947924e56e61990769a3831631394 (diff) |
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 |