Skip to content

Commit

Permalink
Add compat annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 committed Sep 2, 2019
1 parent c40a6fb commit 68d0c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Standard library changes

* The methods of `mktemp` and `mktempdir` which take a function body to pass temporary paths to no longer throw errors if the path is already deleted when the function body returns ([#33091]).

* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#23500]).
* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#33130]).

#### Libdl

Expand Down
3 changes: 3 additions & 0 deletions base/abstractarraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ _dropdims(A::AbstractArray, dim::Integer) = _dropdims(A, (Int(dim),))
Compute reduction `f` over dimensions `dims` and drop those dimensions from the result.
!!! compat "Julia 1.4"
This method requires at least Julia 1.4.
# Examples
```jldoctest
julia> a = [3.0 2.0 6.0 8.0
Expand Down

0 comments on commit 68d0c29

Please sign in to comment.