We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aeb9c1 commit e9c07cfCopy full SHA for e9c07cf
src/librustc/mir/mod.rs
@@ -467,7 +467,7 @@ pub enum TerminatorKind<'tcx> {
467
values: Cow<'tcx, [ConstInt]>,
468
469
/// Possible branch sites. The last element of this vector is used
470
- /// for the otherwise branch, so values.len() == targets.len() + 1
+ /// for the otherwise branch, so targets.len() == values.len() + 1
471
/// should hold.
472
// This invariant is quite non-obvious and also could be improved.
473
// One way to make this invariant is to have something like this instead:
0 commit comments