We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80049e5 commit bd0c993Copy full SHA for bd0c993
1 file changed
src/utils.jl
@@ -88,7 +88,7 @@ end
88
# However these ensure that the result is an AbstractRange even if a specific
89
# broadcasting behavior is not defined for a custom type
90
_subtractoffset(r::AbstractUnitRange, of) = UnitRange(first(r) - of, last(r) - of)
91
-_subtractoffset(r::AbstractRange, of) = range(first(r) - of, last(r) - of, step = step(r))
+_subtractoffset(r::AbstractRange, of) = range(first(r) - of, stop = last(r) - of, step = step(r))
92
93
if VERSION <= v"1.7.0-DEV.1039"
94
_contiguousindexingtype(r::AbstractUnitRange{<:Integer}) = UnitRange{Int}(r)
0 commit comments