]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/progress-bars/models/models-docs.factor
progress-bars.models-docs: fix example code for with-file-reader-progress
[factor.git] / 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"
 ""