Skip to content

Commit d6031c4

Browse files
committed
Fix StepRangeLen printing
1 parent 90ab6a0 commit d6031c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/show.jl

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ Base.show(io::IO, r::OneToSRange) = print(io, "OneToSRange($(last(r)))")
33

44
Base.show(io::IO, r::OneToMRange) = print(io, "OneToMRange($(last(r)))")
55

6-
function Base.show(io::IO, r::AbstractStepRangeLen)
7-
print(io, typeof(r).name, "(", first(r), ":", step(r), ":", last(r), ")")
6+
function Base.show(io::IO, r::StepMRangeLen)
7+
print(io, "StepMRangeLen(", first(r), ":", step(r), ":", last(r), ")")
8+
end
9+
10+
function Base.show(io::IO, r::StepSRangeLen)
11+
print(io, "StepSRangeLen(", first(r), ":", step(r), ":", last(r), ")")
812
end
913

1014
function Base.show(io::IO, r::StepMRange)

0 commit comments

Comments
 (0)