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