mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-23 06:03:07 +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)
|
-- An __index value can also be a function(tbl, key)
|
||||||
-- for more customized lookups.
|
-- for more customized lookups.
|
||||||
|
|
||||||
-- Values of __index,add, .. are called metamethods.
|
-- The values of __index, __add, etc are called
|
||||||
-- Full list. Here a is a table with the metamethod.
|
-- metamethods. Here's their full list:
|
||||||
|
|
||||||
-- __add(a, b) for a + b
|
-- __add(a, b) for a + b
|
||||||
-- __sub(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
|
-- Classes aren't built in; there are different ways
|
||||||
-- to make them using tables and metatables.
|
-- to make them using tables and metatables.
|
||||||
|
|
||||||
-- Explanation for this example is below it.
|
-- The explanation for this example follows it.
|
||||||
|
|
||||||
Dog = {} -- 1.
|
Dog = {} -- 1.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user