Skip to content

Commit

Permalink
Fix broken example README.md
Browse files Browse the repository at this point in the history
Did not compile because `text` variable wasn't there
  • Loading branch information
avan-pra authored and pacman82 committed Nov 23, 2023
1 parent 3b5f2c3 commit 7a637ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use atoi::FromRadix10;
fn atoi_with_rest<I: FromRadix10>(text: &[u8]) -> Option<(&[u8], I)> {
match I::from_radix_10(text) {
(_, 0) => None,
(n, used) => Some((&[used..], n)),
(n, used) => Some((&text[used..], n)),
}
}
```
Expand Down

0 comments on commit 7a637ba

Please sign in to comment.