mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Fix awkward wording in sample code comments
This commit is contained in:
parent
7b5902d723
commit
d5769cecdd
@ -232,8 +232,8 @@ eatenBy = myFavs.animal -- works! thanks, metatable
|
||||
-- An __index value can also be a function(tbl, key)
|
||||
-- for more customized lookups.
|
||||
|
||||
-- Values of __index,add, .. are called metamethods.
|
||||
-- Full list. Here a is a table with the metamethod.
|
||||
-- The values of __index, __add, etc are called
|
||||
-- metamethods. Here's their full list:
|
||||
|
||||
-- __add(a, b) for a + b
|
||||
-- __sub(a, b) for a - b
|
||||
@ -258,7 +258,7 @@ eatenBy = myFavs.animal -- works! thanks, metatable
|
||||
-- Classes aren't built in; there are different ways
|
||||
-- to make them using tables and metatables.
|
||||
|
||||
-- Explanation for this example is below it.
|
||||
-- The explanation for this example follows it.
|
||||
|
||||
Dog = {} -- 1.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user