syntactic changes: 2 typos I missed earlier

This commit is contained in:
Jorge López 2025-01-18 18:58:50 +01:00
parent 3da7d8cb79
commit 9c1d890d59
No known key found for this signature in database
GPG key ID: F8D6CEBC4788D6A1

View file

@ -97,7 +97,7 @@ impl Parameters {
}
}
index => {
// SAFETY: Garanteed from parser that the index is bigger that 0.
// SAFETY: Guaranteed from parser that the index is bigger than 0.
let index: NonZero<usize> = index.parse().unwrap();
if index > self.index {
self.index = index.checked_add(1).unwrap();