Skip to content

Commit fde48ae

Browse files
authored
fix error in StepRange documentation (#47000)
1 parent 95a5ad8 commit fde48ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/range.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ abstract type AbstractUnitRange{T} <: OrdinalRange{T,T} end
283283
Ranges with elements of type `T` with spacing of type `S`. The step
284284
between each element is constant, and the range is defined in terms
285285
of a `start` and `stop` of type `T` and a `step` of type `S`. Neither
286-
`T` nor `S` should be floating point types. The syntax `a:b:c` with `b > 1`
286+
`T` nor `S` should be floating point types. The syntax `a:b:c` with `b != 0`
287287
and `a`, `b`, and `c` all integers creates a `StepRange`.
288288
289289
# Examples

0 commit comments

Comments
 (0)