Fix awkward wording in sample code comments

This commit is contained in:
Éric NICOLAS 2024-07-04 13:48:15 +02:00
parent 981431528b
commit 3536315083
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) -- 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.