]> git.lizzy.rs Git - rust.git/commitdiff
fix typo in mir TerminatorKind docs
authorDavid Renshaw <david@sandstorm.io>
Thu, 16 Mar 2017 15:19:47 +0000 (11:19 -0400)
committerDavid Renshaw <david@sandstorm.io>
Thu, 16 Mar 2017 15:30:06 +0000 (11:30 -0400)
src/librustc/mir/mod.rs

index fea576f7067807bf2933906496e5e5610b6df142..659e115135ee5cf1a4f77ac9951b024216050dda 100644 (file)
@@ -467,7 +467,7 @@ pub enum TerminatorKind<'tcx> {
         values: Cow<'tcx, [ConstInt]>,
 
         /// Possible branch sites. The last element of this vector is used
-        /// for the otherwise branch, so values.len() == targets.len() + 1
+        /// for the otherwise branch, so targets.len() == values.len() + 1
         /// should hold.
         // This invariant is quite non-obvious and also could be improved.
         // One way to make this invariant is to have something like this instead: