Basic Koans about structs

This commit is contained in:
Felipe Sere
2016-03-06 17:22:15 +00:00
committed by Uku Taht
parent f4ae28dd35
commit 99a561a6dc
3 changed files with 62 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ defmodule Watcher do
def callback(file, events) do
if Enum.member?(events, :modified) do
try do
[{mod, _}] = Code.load_file(file)
[{mod, _} | _] = Code.load_file(file)
Runner.run(mod)
rescue
e -> Display.format_compile_error(e)