Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule MyApp.Hello do
- @moduledoc """
- This is the Hello module.
- """
- @doc """
- Says hello to the given `name`.
- Returns `:ok`.
- ## Examples
- iex> MyApp.Hello.world(:john)
- :ok
- """
- def world(name) do
- IO.puts "hello #{name}"
- end
- end
Add Comment
Please, Sign In to add comment