Skip to content

Commit cf685c3

Browse files
authored
clarify that showvalues "name" can be a string (#329)
1 parent 45e21fb commit cf685c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ p = Progress(n)
281281
for iter in 1:10
282282
x *= 2
283283
sleep(0.5)
284-
next!(p; showvalues = [(:iter,iter), (:x,x)])
284+
next!(p; showvalues = [("iteration count",iter), ("x",x)])
285285
end
286286
```
287287

@@ -292,7 +292,7 @@ you can alternatively pass a zero-argument function as a callback to the `showva
292292
```julia
293293
x,n = 1,10
294294
p = Progress(n)
295-
generate_showvalues(iter, x) = () -> [(:iter,iter), (:x,x)]
295+
generate_showvalues(iter, x) = () -> [("iteration count",iter), ("x",x)]
296296
for iter in 1:10
297297
x *= 2
298298
sleep(0.5)

0 commit comments

Comments
 (0)