Fix awkward wording in sample code comments

This commit is contained in:
Éric NICOLAS (ccjmne) 2024-07-04 13:48:15 +02:00
parent 7b5902d723
commit d5769cecdd
No known key found for this signature in database
GPG Key ID: 9B49C8C163B3320C

View File

@ -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.