From e54606c9c775e1427fc97ccdf7dfce51eec606d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20NICOLAS?= Date: Fri, 8 Aug 2025 19:34:36 +0200 Subject: [PATCH] Fix awkward wording in English Lua documentation (#5365) In addition, the cited list of metamethods isn't exhaustive. A detailed list of operations controlled by metatables is available at: https://www.lua.org/manual/5.4/manual.html#2.4 Signed-off-by: Boris Verkhovskiy --- lua.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua.md b/lua.md index 40bfbdad..03b62491 100644 --- a/lua.md +++ b/lua.md @@ -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 are some commonly used ones: -- __add(a, b) for a + b -- __sub(a, b) for a - b