Skip to content

Commit

Permalink
add missing const
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshix-1 committed Oct 15, 2024
1 parent 241e76b commit 5b08561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/word_sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl WordSequence {
}

#[must_use]
pub fn __len__(&self) -> usize {
pub const fn __len__(&self) -> usize {
self.len()
}

Expand Down

0 comments on commit 5b08561

Please sign in to comment.