changeset 472:f4aca5a5346a

minor documentation
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2015 00:22:11 -0600
parents f3a24435d04d
children bab5607a0eed
files website/src/manual.html.luan
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/website/src/manual.html.luan	Sun May 10 00:12:42 2015 -0600
+++ b/website/src/manual.html.luan	Sun May 10 00:22:11 2015 -0600
@@ -1852,7 +1852,7 @@
 
 <p><tt><pre>
 	local function require(mod_name)
-		return Package.load(mod_name) or Luan.error("module '"..mod_name.."' not found")
+		return Package.load(mod_name) or <a href="#Luan.error">Luan.error</a>("module '"..mod_name.."' not found")
 	end
 </pre></tt></p>
 
@@ -1876,7 +1876,7 @@
 
 <p><tt><pre>
 	function Luan.assert(v,message)
-		return v or Luan.error(message or "assertion failed!")
+		return v or <a href="#Luan.error">Luan.error</a>(message or "assertion failed!")
 	end
 </pre></tt></p>
 
@@ -1889,7 +1889,7 @@
 <p><tt><pre>
 	function Luan.assert_binary(v)
 		local v_type = Luan.type(v)
-		return v_type == "binary" and v or Luan.error("bad argument #1 (binary expected, got "..v_type..")")
+		return v_type == "binary" and v or <a href="#Luan.error">Luan.error</a>("bad argument #1 (binary expected, got "..v_type..")")
 	end
 </pre></tt></p>
 
@@ -1937,7 +1937,7 @@
 
 <p><tt><pre>
 	function Luan.do_file(uri)
-		return load_file(uri)()
+		return Luan.load_file(uri)()
 	end
 </pre></tt></p>