diff website/src/manual.html.luan @ 472:f4aca5a5346a

minor documentation
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2015 00:22:11 -0600
parents 5627eb637eb4
children 00646edc9d92
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>