Skip to content

Commit 8bef9e7

Browse files
committed
News and compat annotation for #28708 (range with stop as pos. arg.).
1 parent 00a3621 commit 8bef9e7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Standard library changes
7777
* New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]).
7878
* `mean` and `var` now handles the empty case ([#29033]).
7979
* New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]).
80+
* `range` now accept `stop` as a positional argument ([#28708]).
8081

8182
Compiler/Runtime improvements
8283
-----------------------------

base/range.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ automatically such that the elements are `step` spaced (a [`StepRange`](@ref)).
6060
6161
`stop` may be specified as either a positional or keyword argument.
6262
63+
!!! compat "Julia 1.1"
64+
`stop` as a positional argument requires at least Julia 1.1.
65+
6366
# Examples
6467
```jldoctest
6568
julia> range(1, length=100)

0 commit comments

Comments
 (0)