Skip to content

Commit 294bdda

Browse files
juliohmsouma4
authored andcommitted
Replace Base.OneTo(n) by 1:n for consistency (#1124)
1 parent ed06498 commit 294bdda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/domains.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Base.iterate(d::Domain, state=1) = state > nelements(d) ? nothing : (d[state], s
4848

4949
Base.eltype(d::Domain) = eltype([d[i] for i in 1:nelements(d)])
5050

51-
Base.keys(d::Domain) = Base.OneTo(nelements(d))
51+
Base.keys(d::Domain) = 1:nelements(d)
5252

5353
Base.parent(d::Domain) = d
5454

src/topologies.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Base.iterate(t::Topology, state=1) = state > nelements(t) ? nothing : (t[state],
150150

151151
Base.eltype(t::Topology) = eltype([t[i] for i in 1:nelements(t)])
152152

153-
Base.keys(t::Topology) = Base.OneTo(nelements(t))
153+
Base.keys(t::Topology) = 1:nelements(t)
154154

155155
# ----------------
156156
# IMPLEMENTATIONS

0 commit comments

Comments
 (0)