From 52fc0b775b4826bdcc51334ad08341e31ef2e7e7 Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Sat, 9 Jan 2021 16:51:13 -0500 Subject: [PATCH] Fix typo for steps --- src/length_step.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/length_step.jl b/src/length_step.jl index 571454c..3b4f9dd 100644 --- a/src/length_step.jl +++ b/src/length_step.jl @@ -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