Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/src/manual/parallel-computing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ For instance functions that have their
[name ending with `!`](https://docs.julialang.org/en/latest/manual/style-guide/#Append-!-to-names-of-functions-that-modify-their-arguments-1)
by convention modify their arguments and thus are not pure. However, there are
functions that have side effects and their name does not end with `!`. For
instance [`findfirst(regex, str)`](@Ref) mutates its `regex` argument or
[`rand()`](@Ref) changes `Base.GLOBAL_RNG` :
instance [`findfirst`](@ref) mutates its `regex` argument or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps keep (regex, str), otherwise what follows does not make any sense.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed; I was afraid that it was also breaking a link (but I understand it does not).

[`rand`](@ref) changes `Base.GLOBAL_RNG` :

```julia-repl
julia> using Base.Threads
Expand Down Expand Up @@ -1574,7 +1574,7 @@ creates separate instances of `Regex` object for each entry of `rx` vector.

The case of `rand` is a bit more complex as we have to ensure that each thread
uses non-overlapping pseudorandom number sequences. This can be simply ensured
by using [`randjump`](@Ref) function:
by using [`randjump`](@ref) function:


```julia-repl
Expand Down