]> gitweb.factorcode.org Git - factor.git/commitdiff
progress-bars.models-docs: fix example code for with-file-reader-progress
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 19 Jul 2016 10:24:12 +0000 (13:24 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 30 Jul 2016 16:25:30 +0000 (09:25 -0700)
extra/progress-bars/models/models-docs.factor

index 7c665c7ea2e5aef6da91f3bcbe0e169c3fe5ddcd..08be7774cd7ee2ba4b50f86a88d6ab805f085806 100644 (file)
@@ -17,7 +17,7 @@ HELP: with-file-reader-progress
 { $examples
     "Loop through the Factor image file, discarding each character as it's read and updating a progress bar:"
     { $unchecked-example "USING: system progress-bars.models prettyprint io.encodings.binary threads ;
-image binary [
+image-path binary [
     [ 4096 read yield ] loop
 ] with-file-reader-progress"
 ""