Skip to content

Commit

Permalink
[zh_hant] fix lessons functions example typo (#2969)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfanda35 committed Dec 3, 2023
1 parent da1a29d commit 35d9014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lessons/zh-hant/basics/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ person = %{name: "Fred", age: "95", favorite_color: "Taupe"}
"Hello, Fred"
%{age: "95", favorite_color: "Taupe", name: "Fred"}
# call with only the name key
...> Greeter4.hello(%{name: "Fred"})
...> Greeter2.hello(%{name: "Fred"})
"Hello, Fred"
%{name: "Fred"}
# call without the name key
...> Greeter4.hello(%{age: "95", favorite_color: "Taupe"})
...> Greeter2.hello(%{age: "95", favorite_color: "Taupe"})
** (FunctionClauseError) no function clause matching in Greeter2.hello/1

The following arguments were given to Greeter2.hello/1:
Expand Down

0 comments on commit 35d9014

Please sign in to comment.