Fixes README display issue

master
sloum 2 years ago
parent e38034a467
commit b5c466c354

@ -99,7 +99,7 @@ There are a number of special forms in the language that will allow, for example
<li><code>(load [filepath: string...])</code>: <code>symbol</code></li>
<li><code>(load-mod [filepath: string...])</code>: <code>symbol</code></li>
<li><code>(load-mod-file [filepath: string...])</code>: <code>symbol</code></li>
<li><code>(usage [symbol|string]): <code>()</code> Will display usage information for the given procedure or runtime value</li>
<li><code>(usage [symbol|string])</code>: <code>()</code> Will display usage information for the given procedure or runtime value</li>
</ul>
</details>

@ -29,6 +29,8 @@ var stdLibrary = vars{
"stdin": &IOHandle{os.Stdin, true, "file (read-only)"},
"stdout": &IOHandle{os.Stdout, true, "file (write-only)"},
"stderr": &IOHandle{os.Stderr, true, "file (write-only)"},
// TODO add /dev/null
// TODO add env pathlookup
"PI": number(math.Pi),
"E": number(math.E),
"sys-args": func(a ...expression) expression {
@ -2079,7 +2081,6 @@ var stdLibrary = vars{
if b, ok := a[2].(bool); !ok || (ok && b) {
return exception("'subprocess' was given an error redirection that is not an IOHandle or the boolean '#f'")
}
return exception("'subprocess' was given an error redirection that is not an IOHandle")
} else if !e1.Open {
return exception("'subprocess' was given an error redirection IOHandle that is already closed")
}

Loading…
Cancel
Save