Mercurial Hosting > luan
diff website/src/manual.html.luan @ 1926:4206242c7a13
better css
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 23 Apr 2025 15:34:48 -0600 |
parents | d2a1dbfd402f |
children |
line wrap: on
line diff
--- a/website/src/manual.html.luan Mon Apr 21 13:06:14 2025 -0600 +++ b/website/src/manual.html.luan Wed Apr 23 15:34:48 2025 -0600 @@ -1286,7 +1286,7 @@ <code>(f(x,y,z))</code> is always a single value, even if <code>f</code> returns several values. (The value of <code>(f(x,y,z))</code> is the first value returned by <code>f</code> -or <b>nil</b> if <code>f</code> does not return any values.) +or <code>nil</code> if <code>f</code> does not return any values.) </p> <% end @@ -1300,14 +1300,14 @@ </p> <ul> -<li><b><code>+</code>: </b>addition</li> -<li><b><code>-</code>: </b>subtraction</li> -<li><b><code>*</code>: </b>multiplication</li> -<li><b><code>/</code>: </b>float division</li> -<li><b><code>//</code>: </b>floor division</li> -<li><b><code>%</code>: </b>modulo</li> -<li><b><code>^</code>: </b>exponentiation</li> -<li><b><code>-</code>: </b>unary minus</li> +<li><b>+</b>: addition</li> +<li><b>-</b>: subtraction</li> +<li><b>*</b>: multiplication</li> +<li><b>/</b>: float division</li> +<li><b>//</b>: floor division</li> +<li><b>%</b>: modulo</li> +<li><b>^</b>: exponentiation</li> +<li><b>-</b>: unary minus</li> </ul> <p> @@ -1350,21 +1350,21 @@ </p> <ul> - <li><b><code>==</code>: </b>equality</li> - <li><b><code>~=</code>: </b>inequality</li> - <li><b><code><</code>: </b>less than</li> - <li><b><code>></code>: </b>greater than</li> - <li><b><code><=</code>: </b>less or equal</li> - <li><b><code>>=</code>: </b>greater or equal</li> + <li><b>==</b>: equality</li> + <li><b>~=</b>: inequality</li> + <li><b><</b>: less than</li> + <li><b>></b>: greater than</li> + <li><b><=</b>: less or equal</li> + <li><b>>=</b>: greater or equal</li> </ul> <p> -These operators always result in <b>false</b> or <b>true</b>. +These operators always result in <code>false</code> or <code>true</code>. </p> <p> Equality (<code>==</code>) first compares the type of its operands. -If the types are different, then the result is <b>false</b>. +If the types are different, then the result is <code>false</code>. Otherwise, the values of the operands are compared. Strings, numbers, and binary values are compared in the obvious way (by value). </p> @@ -1390,7 +1390,7 @@ <p> Equality comparisons do not convert strings to numbers or vice versa. -Thus, <code>"0"==0</code> evaluates to <b>false</b>, +Thus, <code>"0"==0</code> evaluates to <code>false</code>, and <code>t[0]</code> and <code>t["0"]</code> denote different entries in a table. </p>