diff --git a/doc/src/manual/types.md b/doc/src/manual/types.md index 1a7d849ae1a7a..3527f19f41109 100644 --- a/doc/src/manual/types.md +++ b/doc/src/manual/types.md @@ -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).