Skip to content

Instantly share code, notes, and snippets.

@dg3feiko
Created November 30, 2016 09:18
Show Gist options
  • Save dg3feiko/47c14a7333a6c0556353f783bfdcd348 to your computer and use it in GitHub Desktop.
Save dg3feiko/47c14a7333a6c0556353f783bfdcd348 to your computer and use it in GitHub Desktop.
defmodule MyModule do
def doSomething(num) do
if num != 1 do
{:ok, num + 1}
else
{:error, "some reason"}
end
end
end
@dg3feiko
Copy link
Author

Damn it, why the other part of comment was removed....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment