diff --git a/doc/src/manual/methods.md b/doc/src/manual/methods.md index 45d22e08aaffe..e7f6514a64506 100644 --- a/doc/src/manual/methods.md +++ b/doc/src/manual/methods.md @@ -1002,13 +1002,13 @@ there is a terse syntax form. In the function body, `p` will refer to the object called. A `Polynomial` can be used as follows: ```jldoctest polynomial -julia> p = Polynomial([1,10,100]) +julia> poly = Polynomial([1,10,100]) Polynomial{Int64}([1, 10, 100]) -julia> p(3) +julia> poly(3) 931 -julia> p() +julia> poly() 2551 ```