Add unreachable comments.

This commit is contained in:
Stephen Chung
2022-07-23 21:00:58 +08:00
parent f85ad28e93
commit e8d6e3f57d
5 changed files with 8 additions and 8 deletions

View File

@@ -105,7 +105,7 @@ impl<T: Debug + Copy + PartialOrd> Iterator for StepRange<T> {
self.dir = 0;
}
} else {
unreachable!();
unreachable!("`dir` != 0");
}
Some(v)