diff options
author | Adam Bard <github@adambard.com> | 2013-12-20 10:34:48 -0800 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2013-12-20 10:34:48 -0800 |
commit | 0aa7e32f059460a4b56f3674ab52eea20331787f (patch) | |
tree | 20a1e2acdd8f4f1f0249decf503dca5d83aafa8d | |
parent | 40700bf6ba9fa45ea036d089a3c36b22b9c1b163 (diff) | |
parent | d297853c06f4651da4c83f536d601140ae4d571d (diff) |
Merge pull request #454 from adrianlzt/feature/improve_defined_types_functions
[julia/en] Functions with defined types parameters a little bit confusing
-rw-r--r-- | julia.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/julia.html.markdown b/julia.html.markdown index f1e1a4a2..ce55f956 100644 --- a/julia.html.markdown +++ b/julia.html.markdown @@ -575,15 +575,15 @@ end # For a non-constructor example, let's make a function meow: # Definitions for Lion, Panther, Tiger -function meow(cat::Lion) - cat.roar # access type properties using dot notation +function meow(animal::Lion) + animal.roar # access type properties using dot notation end -function meow(cat::Panther) +function meow(animal::Panther) "grrr" end -function meow(cat::Tiger) +function meow(animal::Tiger) "rawwwr" end |