elixir: add vars to hello world

This commit is contained in:
Rico Sta. Cruz 2017-09-15 19:12:14 +08:00
parent 6099a3117e
commit d63fedde3b
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ weight: -10
# hello.exs # hello.exs
defmodule Greeter do defmodule Greeter do
def greet(name) do def greet(name) do
IO.puts "Hello, " <> name <> "!" message = "Hello, " <> name <> "!"
IO.puts message
end end
end end