Remove function single do: definition syntax

This commit is contained in:
José Valim
2012-05-13 17:36:54 +02:00
parent 53ba7e7e85
commit f9dd6f66a6
12 changed files with 126 additions and 130 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ defmodule Kernel.RescueTest do
end
test :badarity_error do
fun = fn(x, do: x)
fun = fn(x) -> x end
string = "bad arity error: #{inspect(fun)} called with [1,2]"
result = try do