Skip to content

Commit 4f1ff0b

Browse files
authored
Docstring of |>: add parentheses around -> func (#43699)
1 parent dc61f29 commit 4f1ff0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ Applies a function to the preceding argument. This allows for easy function chai
952952
953953
# Examples
954954
```jldoctest
955-
julia> [1:5;] |> x->x.^2 |> sum |> inv
955+
julia> [1:5;] |> (x->x.^2) |> sum |> inv
956956
0.01818181818181818
957957
```
958958
"""

0 commit comments

Comments
 (0)