summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2015-11-04 23:28:26 -0500
committerChris Martin <ch.martin@gmail.com>2015-11-04 23:28:26 -0500
commit33628dca5cb4367cbbad1e4f48ddab0630b03330 (patch)
tree4828dc180e934f43d3d3e32fd03ca8d7c0c03256
parent8799f11b89c947924e56e61990769a3831631394 (diff)
elixir: add eval results to try-rescue examples
-rw-r--r--elixir.html.markdown2
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