From 41955a16de9ee636a478e2bc27d31f7cf08a593a Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Thu, 23 Feb 2017 10:39:02 -0600 Subject: [PATCH] Fix unbound variable error in Elixir v1.5.0-dev It's not clear to me why "e in _" ever worked, but this seems to make things better. Afaict, the point of these clauses are to "rescue anything". --- lib/koans.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/koans.ex b/lib/koans.ex index dc03601..2b3ed68 100644 --- a/lib/koans.ex +++ b/lib/koans.ex @@ -22,7 +22,7 @@ defmodule Koans do unquote(compiled_body) :ok rescue - e in _ -> e + e -> e end end end @@ -37,7 +37,7 @@ defmodule Koans do unquote(single_var) :ok rescue - e in _ -> e + e -> e end end end @@ -52,7 +52,7 @@ defmodule Koans do unquote(multi_var) :ok rescue - e in _ -> e + e -> e end end end