Skip to content

Commit 3dc2f9a

Browse files
Minor change to an example for clarity. (#57461)
This is a minor change, given the different syntax from usual methods/functions, using a different name for the example may make it clearer that there is nothing special about the name `p` used in the definition of the function.
1 parent 04922e7 commit 3dc2f9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/manual/methods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,13 +1002,13 @@ there is a terse syntax form. In the function body, `p` will refer to the object
10021002
called. A `Polynomial` can be used as follows:
10031003

10041004
```jldoctest polynomial
1005-
julia> p = Polynomial([1,10,100])
1005+
julia> poly = Polynomial([1,10,100])
10061006
Polynomial{Int64}([1, 10, 100])
10071007
1008-
julia> p(3)
1008+
julia> poly(3)
10091009
931
10101010
1011-
julia> p()
1011+
julia> poly()
10121012
2551
10131013
```
10141014

0 commit comments

Comments
 (0)