Skip to content

Commit

Permalink
Docstring of |>: add parentheses around -> func (#43699)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfiers authored Jan 7, 2022
1 parent dc61f29 commit 4f1ff0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ Applies a function to the preceding argument. This allows for easy function chai
# Examples
```jldoctest
julia> [1:5;] |> x->x.^2 |> sum |> inv
julia> [1:5;] |> (x->x.^2) |> sum |> inv
0.01818181818181818
```
"""
Expand Down

0 comments on commit 4f1ff0b

Please sign in to comment.