Skip to content

Commit 92174fb

Browse files
committed
Fix formatting ... again
1 parent 6e65d8c commit 92174fb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Static.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ end
6767
`IntType` is a union of `Int` and `StaticInt`. As a function, it ensures that `x` one of the
6868
two.
6969
"""
70-
const IntType = Union{StaticInt,Int}
70+
const IntType = Union{StaticInt, Int}
7171
IntType(x::Integer) = Int(x)
72-
IntType(@nospecialize x::Union{Int,StaticInt}) = x
72+
IntType(@nospecialize x::Union{Int, StaticInt}) = x
7373

7474
include("float.jl")
7575

test/ranges.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ end
7676
@test iterate(static(2):static(5), 5) === nothing
7777
@test iterate(static(1):static(2):static(9), 1) === (3, 3)
7878
@test iterate(static(1):static(2):static(9), 9) === nothing
79+
# make sure single length ranges work correctly
80+
@test iterate(static(2):static(3):static(2))[1] === 2 ===
81+
(static(2):static(3):static(2))[1]
82+
@test iterate(static(2):static(3):static(2), 2) === nothing
7983
end
8084

8185
# CartesianIndices

0 commit comments

Comments
 (0)