Skip to content

Commit a953947

Browse files
committed
News and compat annotation for #28708 (range with stop as pos. arg.).
1 parent 9deaba0 commit a953947

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
@@ -75,6 +75,7 @@ Standard library changes
7575
* New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]).
7676
* `mean` and `var` now handles the empty case ([#29033]).
7777
* New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]).
78+
* `range` now accept `stop` as a positional argument ([#28708]).
7879

7980
Compiler/Runtime improvements
8081
-----------------------------

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)