Skip to content

Commit

Permalink
compat entries
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Mar 11, 2020
1 parent d1f3d45 commit 2b35cf2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/strings/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ a function equivalent to `y -> endswith(y, suffix)`.
The returned function is of type `Base.Fix2{typeof(endswith)}`, which can be
used to implement specialized methods.
!!! compat "Julia 1.5"
The single argument `endswith(suffix)` requires at least Julia 1.5.
"""
endswith(s) = Base.Fix2(endswith, s)

Expand All @@ -89,6 +93,10 @@ a function equivalent to `y -> startswith(y, prefix)`.
The returned function is of type `Base.Fix2{typeof(startswith)}`, which can be
used to implement specialized methods.
!!! compat "Julia 1.5"
The single argument `startswith(prefix)` requires at least Julia 1.5.
"""
startswith(s) = Base.Fix2(startswith, s)

Expand Down

0 comments on commit 2b35cf2

Please sign in to comment.