diff website/src/manual.html.luan @ 1090:616761e0b9f6

update documentation for last change
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 30 Dec 2016 13:13:16 -0700
parents 9c13a15a4002
children a26fbde7ee28
line wrap: on
line diff
--- a/website/src/manual.html.luan	Thu Dec 29 21:26:45 2016 -0700
+++ b/website/src/manual.html.luan	Fri Dec 30 13:13:16 2016 -0700
@@ -1607,7 +1607,7 @@
 <p>
 When a function is called,
 the list of arguments is adjusted to
-the length of the list of parameters,
+the length of the list of parameters if the list is too short,
 unless the function is a <em>vararg function</em>,
 which is indicated by three dots ('<code>...</code>')
 at the end of its parameter list.
@@ -1643,9 +1643,9 @@
      
      f(3)             a=3, b=nil
      f(3, 4)          a=3, b=4
-     f(3, 4, 5)       a=3, b=4
-     f(r(), 10)       a=1, b=10
-     f(r())           a=1, b=2
+     f(3, 4, 5)       runtime error
+     f(r(), 10)       runtime error
+     f(r())           runtime error
      
      g(3)             a=3, b=nil, ... --&gt;  (nothing)
      g(3, 4)          a=3, b=4,   ... --&gt;  (nothing)