]> gitweb.factorcode.org Git - factor.git/commitdiff
threads-docs: add a comment to the spawn article
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 1 Nov 2016 18:51:37 +0000 (21:51 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 2 Nov 2016 15:01:26 +0000 (08:01 -0700)
basis/threads/threads-docs.factor

index 8d63b30c05d104db9f5b880baf103eadd85478e4..f6f1210e50c6c35550e854492e41504e9b82c01d 100644 (file)
@@ -181,6 +181,7 @@ $nl
     "A simple thread that adds two numbers:"
     { $code "1 2 [ + . ] 2curry \"Addition thread\" spawn" }
     "A thread that counts to 10:"
+    ! Don't use $example below: it won't pass help-lint.
     { $code
       "USING: math.parser threads ;"
       "[ 10 iota [ number>string write nl yield ] each ] \"test\" spawn drop"