Skip to content

Commit

Permalink
Update links and resolve warnings (#38)
Browse files Browse the repository at this point in the history
The documentation links are returning 404.
Invoking the functions without the parenthesis results in a console warning.
  • Loading branch information
fdbeirao authored and seven1m committed Sep 27, 2018
1 parent b39f6ba commit ad8c506
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 03-input-output.exs
@@ -1,5 +1,5 @@
# http://elixir-lang.org/docs/stable/elixir/IO.html
# http://elixir-lang.org/docs/stable/elixir/File.html
# https://hexdocs.pm/elixir/IO.html
# https://hexdocs.pm/elixir/File.html

defmodule CowInterrogator do

Expand All @@ -19,11 +19,11 @@ defmodule CowInterrogator do
end

def interrogate do
name = get_name
case String.downcase(get_cow_lover) do
name = get_name()
case String.downcase(get_cow_lover()) do
"y" ->
IO.puts "Great! Here's a cow for you #{name}:"
IO.puts cow_art
IO.puts cow_art()
"n" ->
IO.puts "That's a shame, #{name}."
_ ->
Expand Down

0 comments on commit ad8c506

Please sign in to comment.