Skip to content

Commit 9c498bf

Browse files
authored
Fix pmap signature in CachingPool docstring (#37885)
1 parent 8fc3221 commit 9c498bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Distributed/src/workerpool.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ For global variables, only the bindings are captured in a closure, not the data.
309309
const foo = rand(10^8);
310310
wp = CachingPool(workers())
311311
let foo = foo
312-
pmap(wp, i -> sum(foo) + i, 1:100);
312+
pmap(i -> sum(foo) + i, wp, 1:100);
313313
end
314314
```
315315

0 commit comments

Comments
 (0)