]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/two-phase-nonrecv-autoref.rs
Rollup merge of #99460 - JanBeh:PR_asref_asmut_docs, r=joshtriplett
[rust.git] / src / test / ui / borrowck / two-phase-nonrecv-autoref.rs
index 3d395d1f264a0d8407b3c17ca2e3cc08188ba12b..da238205b402f1562159a05fc91c7d64dd062e86 100644 (file)
@@ -131,13 +131,13 @@ fn coerce_index_op() {
     let mut i = I(10);
     i[i[3]] = 4;
     //~^ ERROR cannot borrow `i` as immutable because it is also borrowed as mutable [E0502]
-    // Shoud be accepted with g2p
+    // Should be accepted with g2p
 
     i[3] = i[4];
 
     i[i[3]] = i[4];
     //~^ ERROR cannot borrow `i` as immutable because it is also borrowed as mutable [E0502]
-    // Shoud be accepted with g2p
+    // Should be accepted with g2p
 }
 
 fn main() {