threads-docs: drop the spawned thread in the example code
parent
5a59a736b7
commit
6b3c802b13
|
@ -183,7 +183,7 @@ $nl
|
||||||
"A thread that counts to 10:"
|
"A thread that counts to 10:"
|
||||||
{ $code
|
{ $code
|
||||||
"USING: math.parser threads ;"
|
"USING: math.parser threads ;"
|
||||||
"[ 10 iota [ number>string write nl yield ] each ] \"test\" spawn"
|
"[ 10 iota [ number>string write nl yield ] each ] \"test\" spawn drop"
|
||||||
"10 [ yield ] times"
|
"10 [ yield ] times"
|
||||||
"0"
|
"0"
|
||||||
"1"
|
"1"
|
||||||
|
|
Loading…
Reference in New Issue