Skip to content

Commit e9c07cf

Browse files
author
David Renshaw
committed
fix typo in mir TerminatorKind docs
1 parent 0aeb9c1 commit e9c07cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub enum TerminatorKind<'tcx> {
467467
values: Cow<'tcx, [ConstInt]>,
468468

469469
/// Possible branch sites. The last element of this vector is used
470-
/// for the otherwise branch, so values.len() == targets.len() + 1
470+
/// for the otherwise branch, so targets.len() == values.len() + 1
471471
/// should hold.
472472
// This invariant is quite non-obvious and also could be improved.
473473
// One way to make this invariant is to have something like this instead:

0 commit comments

Comments
 (0)