Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Base.OneTo(n) by 1:n for consistency #1124

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/domains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Base.iterate(d::Domain, state=1) = state > nelements(d) ? nothing : (d[state], s

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

Base.keys(d::Domain) = Base.OneTo(nelements(d))
Base.keys(d::Domain) = 1:nelements(d)

Base.parent(d::Domain) = d

Expand Down
2 changes: 1 addition & 1 deletion src/topologies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

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

Base.keys(t::Topology) = Base.OneTo(nelements(t))
Base.keys(t::Topology) = 1:nelements(t)

Check warning on line 153 in src/topologies.jl

View check run for this annotation

Codecov / codecov/patch

src/topologies.jl#L153

Added line #L153 was not covered by tests

# ----------------
# IMPLEMENTATIONS
Expand Down
Loading