Skip to content

Commit

Permalink
Add comment about this.next() in Expansions::empty
Browse files Browse the repository at this point in the history
  • Loading branch information
swooster committed Oct 26, 2023
1 parent 30a5204 commit 71a215a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expansions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Expansions {
pub fn empty() -> Self {
// TODO: Possibly make this skip allocation by reusing Arc?
let mut this = Self::new(&[]);
this.next();
this.next(); // `this` contains a single empty expansion; skip it
this
}
}
Expand Down

0 comments on commit 71a215a

Please sign in to comment.