diff options
author | Jakukyo Friel <weakish@gmail.com> | 2014-02-06 01:45:16 +0800 |
---|---|---|
committer | Jakukyo Friel <weakish@gmail.com> | 2014-02-06 01:45:16 +0800 |
commit | f70b1edcfbe14bd41fb7c1e45113359a3c75b4e3 (patch) | |
tree | 2a69321bf3727f7a8135ece466aa9ac21adc47df /lua.html.markdown | |
parent | a44935283a6caf456ab7d058cbcecbfe63bceaa3 (diff) |
lua: typo
`LoudDog.__index` is `Dog`, not `LoudDog`.
Diffstat (limited to 'lua.html.markdown')
-rw-r--r-- | lua.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua.html.markdown b/lua.html.markdown index 27ce105b..bdd59999 100644 --- a/lua.html.markdown +++ b/lua.html.markdown @@ -321,7 +321,7 @@ seymour:makeSound() -- 'woof woof woof' -- 4. -- Dog.new(LoudDog) as LoudDog has no 'new' key, -- but does have __index = Dog on its metatable. -- Result: seymour's metatable is LoudDog, and --- LoudDog.__index = LoudDog. So seymour.key will +-- LoudDog.__index = Dog. So seymour.key will -- = seymour.key, LoudDog.key, Dog.key, whichever -- table is the first with the given key. -- 4. The 'makeSound' key is found in LoudDog; this |