Skip to content

Commit 77b50c1

Browse files
JeffFesslerjohnnychen94Keno
authored andcommitted
Document that Length parameter needs Julia 1.7 (JuliaLang#45961)
* Document that `L`ength parameter needs Julia 1.7 vtjnash added the 4th type parameter `L` in JuliaLang#41619 to `StepRangeLen`. That addition seems to have appeared in Julia 1.7 so it should be documented as such. I found this out the hard way because my CI for code that used `L` is failing with Julia 1.6. Co-authored-by: Johnny Chen <[email protected]> Co-authored-by: Keno Fischer <[email protected]>
1 parent 623cd0e commit 77b50c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/range.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ value `r[1]`, but alternatively you can supply it as the value of
467467
`r[offset]` for some other index `1 <= offset <= len`. In conjunction
468468
with `TwicePrecision` this can be used to implement ranges that are
469469
free of roundoff error.
470+
471+
!!! compat "Julia 1.7"
472+
The 4th type parameter `L` requires at least Julia 1.7.
470473
"""
471474
struct StepRangeLen{T,R,S,L<:Integer} <: AbstractRange{T}
472475
ref::R # reference value (might be smallest-magnitude value in the range)

0 commit comments

Comments
 (0)