Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Oct 25, 2024
1 parent db8a197 commit b38d79d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/btreemap/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ where
// A reference to the map being iterated on.
map: &'a BTreeMap<K, V, M>,

// A flag indicating if the cursors have been initialized yet.
// A flag indicating if the cursors have been initialized yet. This is needed to distinguish
// between the case where the iteration hasn't started yet and the case where the iteration has
// finished (in both cases the `cursors` field will be empty).
cursors_initialized: bool,

// A stack of cursors indicating the current position in the tree.
Expand Down

0 comments on commit b38d79d

Please sign in to comment.