Skip to content

Commit

Permalink
correct deprecated parametric method syntax (#26789)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored and JeffBezanson committed Apr 12, 2018
1 parent b010e70 commit 1e08aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/manual/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ function norm(p::Point{<:Real})
end
```

(Equivalently, one could define `function norm{T<:Real}(p::Point{T})` or
`function norm(p::Point{T} where T<:Real)`; see [UnionAll Types](@ref).)
(Equivalently, one could define `function norm(p::Point{T} where T<:Real)` or
`function norm(p::Point{T}) where T<:Real`; see [UnionAll Types](@ref).)

More examples will be discussed later in [Methods](@ref).

Expand Down

0 comments on commit 1e08aae

Please sign in to comment.