]> gitweb.factorcode.org Git - factor.git/commitdiff
io.monitors: fix example (reported by levy in #concatenative0
authorSlava Pestov <slava@shill.internal.stack-effects.com>
Fri, 22 May 2009 04:27:42 +0000 (23:27 -0500)
committerSlava Pestov <slava@shill.internal.stack-effects.com>
Fri, 22 May 2009 04:27:42 +0000 (23:27 -0500)
basis/io/monitors/monitors-docs.factor

index f0278e300e03457cc84b5518ec01590decd101b2..c5f266de56cb7ecec0ee624f79deecb8f83ac26b 100644 (file)
@@ -112,10 +112,10 @@ $nl
 { $code\r
     "USE: io.monitors"\r
     ": watch-loop ( monitor -- )"\r
-    "    dup next-change . nl nl flush watch-loop ;"\r
+    "    dup next-change path>> print nl nl flush watch-loop ;"\r
     ""\r
     ": watch-directory ( path -- )"\r
-    "    [ t [ watch-loop ] with-monitor ] with-monitors"\r
+    "    [ t [ watch-loop ] with-monitor ] with-monitors ;"\r
 } ;\r
 \r
 ABOUT: "io.monitors"\r