Skip to content

Commit 3f31a12

Browse files
committed
Place docstring above struct definition
1 parent 816f4ed commit 3f31a12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SOneTo.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
const SOneToSupertype = isdefined(Base, :AbstractOneTo) ? Base.AbstractOneTo : AbstractUnitRange
2+
13
"""
24
SOneTo(n)
35
46
Return a statically-sized `AbstractUnitRange` starting at `1`, functioning as the `axes` of
57
a `StaticArray`.
68
"""
7-
SOneTo
8-
9-
const SOneToSupertype = isdefined(Base, :AbstractOneTo) ? Base.AbstractOneTo : AbstractUnitRange
109
struct SOneTo{n} <: SOneToSupertype{Int}
1110
end
1211

0 commit comments

Comments
 (0)