Skip to content

Commit

Permalink
fixes Index::for_len_unchecked test
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Jul 2, 2024
1 parent 4ce6c00 commit 7b5d56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Index {
/// assert_eq!(Index::Next.for_len_unchecked(30), 30);
///
/// // no bounds checks
/// assert_eq!(Index::Num(34).for_len_unchecked(40), 40);
/// assert_eq!(Index::Num(40).for_len_unchecked(34), 40);
/// assert_eq!(Index::Next.for_len_unchecked(34), 34);
/// ````
pub fn for_len_unchecked(&self, length: usize) -> usize {
Expand Down

0 comments on commit 7b5d56d

Please sign in to comment.