Skip to content

Commit

Permalink
Fix typo for steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jan 9, 2021
1 parent 814f532 commit 52fc0b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/length_step.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ end
(::Base.Colon)(start::T, ::Length{Nothing}, stop::T) where T<:Real = Base._range(start, nothing, stop, nothing)
(::Base.Colon)(::Length{Nothing}, start, stop) = Base._range(start, nothing, stop, nothing)

(::Base.Colon)(start, stop, step::Step) = start:step.step.step:stop
(::Base.Colon)(start, stop, step::Step) = start:step.step:stop
(::Base.Colon)(start::T, step::Step, stop::T) where T<:Real = start:step.step:stop
(::Base.Colon)(step::Step, start, stop) = start:step.step.step:stop
(::Base.Colon)(step::Step, start, stop) = start:step.step:stop

(::Base.Colon)(start, stop, ::Step{Nothing}) = start:stop
(::Base.Colon)(start::T, ::Step{Nothing}, stop::T) where T<:Real = start:stop
Expand Down

0 comments on commit 52fc0b7

Please sign in to comment.