Skip to content

Commit b166d0d

Browse files
authored
fix docstring for workers() and procs() (#38467)
1 parent aa18d37 commit b166d0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/Distributed/src/cluster.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -869,13 +869,13 @@ Get the number of available worker processes. This is one less than [`nprocs()`]
869869
870870
# Examples
871871
```julia-repl
872-
\$ julia -p 5
872+
\$ julia -p 2
873873
874874
julia> nprocs()
875-
6
875+
3
876876
877877
julia> nworkers()
878-
5
878+
2
879879
```
880880
"""
881881
function nworkers()
@@ -890,7 +890,7 @@ Return a list of all process identifiers, including pid 1 (which is not included
890890
891891
# Examples
892892
```julia-repl
893-
\$ julia -p 5
893+
\$ julia -p 2
894894
895895
julia> procs()
896896
3-element Array{Int64,1}:
@@ -952,7 +952,7 @@ Return a list of all worker process identifiers.
952952
953953
# Examples
954954
```julia-repl
955-
\$ julia -p 5
955+
\$ julia -p 2
956956
957957
julia> workers()
958958
2-element Array{Int64,1}:

0 commit comments

Comments
 (0)