From ba338b145cf59339454a88de908e3a07206a2b2d Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 21 Jun 2016 19:29:53 -0500 Subject: [PATCH] remove spurious 'previdx' from _tostring metamethod docs --- doc/source/reference/language/metamethods.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/reference/language/metamethods.rst b/doc/source/reference/language/metamethods.rst index cfaaa48..260b030 100644 --- a/doc/source/reference/language/metamethods.rst +++ b/doc/source/reference/language/metamethods.rst @@ -226,7 +226,7 @@ _nexti _nexti(previdx) -invoked when a userdata or class instance is iterated by a foreach loop +invoked when a userdata or class instance is iterated by a foreach loop. If previdx==null it means that it is the first iteration. The function has to return the index of the 'next' value. @@ -237,10 +237,10 @@ _tostring :: - _tostring(previdx) + _tostring() -invoked when during string concatenation or when the ``print`` function prints a table, instance, or userdata. -The method is also invoked by the sq_tostring() API +Invoked when during string concatenation or when the ``print`` function prints a table, instance, or userdata. +The method is also invoked by the sq_tostring() API. Must return a string representation of the object.