fixed issue in documentation of while loop

This commit is contained in:
Aidan 2021-05-23 22:01:46 -07:00
parent 7e3639d48b
commit aae28f68b6
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 8 additions and 12 deletions

View file

@ -77,9 +77,9 @@ func ShsIf(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
/* continually eval n forms while element #1 evals to T
* has rather progn like behavior in that it returns the result of the last form to be evaluated
*
* Example:
* (export cond F)
* (while cond (export cond T) (print "will only be printed once") (+ 1 2))
* Example:
* (export cond T)
* (while cond (export cond F) (print "will only be printed once") (+ 1 2))
* loop will iter one time, print "will only be printed once" and return 3
*/
func ShsWhile(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {