From e5c35e36776ff0ffd2d9b7c9637cb9bd4041692c Mon Sep 17 00:00:00 2001 From: Sebastian Stock <42280794+sostock@users.noreply.github.com> Date: Fri, 17 Sep 2021 23:18:56 +0200 Subject: [PATCH] Add compat note to `clamp`/`clamp!` docstrings (#42159) --- base/math.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/math.jl b/base/math.jl index 3857b1b1e8c10..d6cbaf6068a3f 100644 --- a/base/math.jl +++ b/base/math.jl @@ -49,6 +49,9 @@ are promoted to a common type. See also [`clamp!`](@ref), [`min`](@ref), [`max`](@ref). +!!! compat "Julia 1.3" + `missing` as the first argument requires at least Julia 1.3. + # Examples ```jldoctest julia> clamp.([pi, 1.0, big(10)], 2.0, 9.0) @@ -98,6 +101,9 @@ clamp(x, ::Type{T}) where {T<:Integer} = clamp(x, typemin(T), typemax(T)) % T Restrict values in `array` to the specified range, in-place. See also [`clamp`](@ref). +!!! compat "Julia 1.3" + `missing` entries in `array` require at least Julia 1.3. + # Examples ```jldoctest julia> row = collect(-4:4)';