]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
Auto merge of #26058 - Kimundi:issue15609, r=nikomatsakis
[rust.git] / src / librustc_typeck / check / mod.rs
index 33737f40e46f09504ff206f7eae83aa1f2d91c7f..314793e2097a33378a096f6c61635b77c43fb74a 100644 (file)
@@ -2094,7 +2094,7 @@ fn lookup_indexing<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>,
         return final_mt;
     }
 
-    // After we have fully autoderef'd, if the resulting type is [T, ..n], then
+    // After we have fully autoderef'd, if the resulting type is [Tn], then
     // do a final unsized coercion to yield [T].
     if let ty::ty_vec(element_ty, Some(_)) = ty.sty {
         let adjusted_ty = ty::mk_vec(fcx.tcx(), element_ty, None);