changeset 686:33f1b4ad2c9d

more documentation fixes
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 17 Apr 2016 16:39:28 -0600
parents 1e4b0bc0202d
children fc08c3b42010
files website/src/diff.html.luan website/src/tutorial.html.luan
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 1e4b0bc0202d -r 33f1b4ad2c9d website/src/diff.html.luan
--- a/website/src/diff.html.luan	Sat Apr 16 22:37:47 2016 -0600
+++ b/website/src/diff.html.luan	Sun Apr 17 16:39:28 2016 -0600
@@ -59,6 +59,7 @@
 				<li><a href="#bit">Bitwise Operators</a></li>
 				<li><a href="#logical_ops">Logical Operators</a></li>
 				<li><a href="#concatenation">Concatenation</a></li>
+				<li><a href="#constructors">Table Constructors</a></li>
 				<li><a href="#fn_calls">Function Calls</a></li>
 				<li><a href="#template_expr">Template Expressions</a></li>
 			</ul>
@@ -197,6 +198,10 @@
 
 <p>Unlike Lua, Luan converts all concatenation operands to strings.
 
+<h4 heading><a name="constructors">Table Constructors</a></h4>
+
+<p>Unlike Lua, Luan considers an <b>end_of_line</b> to be a field separator in a table constructor.</p>
+
 <h4 heading><a name="fn_calls">Function Calls</a></h4>
 
 <p>Luan does not support Lua's <code>v:name(args)</code> style object-oriented function call.  Object oriented programming is done in Luan using closures, so this feature is not needed.</p>
diff -r 1e4b0bc0202d -r 33f1b4ad2c9d website/src/tutorial.html.luan
--- a/website/src/tutorial.html.luan	Sat Apr 16 22:37:47 2016 -0600
+++ b/website/src/tutorial.html.luan	Sun Apr 17 16:39:28 2016 -0600
@@ -34,7 +34,7 @@
 <p>The syntax here is based on <a href="http://en.wikipedia.org/wiki/JavaServer_Pages">JSP</a>.  Let's change it a little:</p>
 
 <pre><%=Html.encode[[
-	name = "Bob"
+	local name = "Bob"
 	%>
 	Hello <%= name %>
 	<%