Guest User

Untitled

a guest
Dec 15th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. defmodule MyApp.Hello do
  2. @moduledoc """
  3. This is the Hello module.
  4. """
  5.  
  6. @doc """
  7. Says hello to the given `name`.
  8.  
  9. Returns `:ok`.
  10.  
  11. ## Examples
  12.  
  13. iex> MyApp.Hello.world(:john)
  14. :ok
  15.  
  16. """
  17. def world(name) do
  18. IO.puts "hello #{name}"
  19. end
  20. end
Add Comment
Please, Sign In to add comment