Skip to content

Commit

Permalink
Update src/topologies.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
  • Loading branch information
juliohm and JoshuaLampert authored Oct 25, 2024
1 parent fc29542 commit a8ff57e
Showing 1 changed file with 1 addition and 1 deletion.
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.iterate(t::Topology, state=1) = state > nelements(t) ? nothing : (t[state],

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

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

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

0 comments on commit a8ff57e

Please sign in to comment.