]> gitweb.factorcode.org Git - factor.git/commitdiff
eval: fix help-lint
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 4 Feb 2022 23:56:51 +0000 (15:56 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 4 Feb 2022 23:56:51 +0000 (15:56 -0800)
basis/eval/eval-docs.factor

index a90e82bfee2b29a3ecd7dec227a49b0834743e43..1a047da6d03ce4d2b47dc964ef5defd0727b0b8f 100644 (file)
@@ -27,8 +27,12 @@ HELP: eval(
 { $errors "Throws an error if the input is malformed, or if the evaluation itself throws an error." } ;
 
 HELP: eval-with-stack
+{ $values { "str" string } }
+{ $description "Parses Factor source code from " { $snippet "str" } ", and then calls the resulting quotation, printing the data stack if any objects are left." } ;
+
+HELP: eval-with-stack>string
 { $values { "str" string } { "output" string } }
-{ $description "Parses Factor source code from " { $snippet "str" } ", and then calls the resulting quotation, and then prints the data stack if any objects are left." } ;
+{ $description "Evaluates the Factor code in " { $snippet "str" } " with " { $link output-stream } " rebound to a string output stream, printing the data stack if any objects are left, then outputs the resulting string." } ;
 
 HELP: eval>string
 { $values { "str" string } { "output" string } }