diff website/src/manual.html.luan @ 429:e3a6d9dbd694

rename __tostring to __to_string
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 02 May 2015 20:13:24 -0600
parents df95199ca4c0
children eddf7c73373b
line wrap: on
line diff
--- a/website/src/manual.html.luan	Sat May 02 20:10:31 2015 -0600
+++ b/website/src/manual.html.luan	Sat May 02 20:13:24 2015 -0600
@@ -2290,7 +2290,7 @@
 
 
 <p>
-If the metatable of <code>v</code> has a <code>"__tostring"</code> field,
+If the metatable of <code>v</code> has a <code>"__to_string"</code> field,
 then <code>tostring</code> calls the corresponding value
 with <code>v</code> as argument,
 and uses the result of the call as its result.
@@ -5229,7 +5229,7 @@
 In case of unprotected errors in the script,
 the interpreter reports the error to the standard error stream.
 If the error object is not a string but 
-has a metamethod <code>__tostring</code>,
+has a metamethod <code>__to_string</code>,
 the interpreter calls this metamethod to produce the final message.
 Otherwise, the interpreter converts the error object to a string
 and adds a stack traceback to it.