]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/collections/vec_deque.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / liballoc / collections / vec_deque.rs
index 85d1d98b8a9c23bfb3b908baeb7f7f78d99f481c..9d56f17700a857f90abb58b7891fa96dff29b735 100644 (file)
@@ -2132,7 +2132,7 @@ pub fn rotate_right(&mut self, k: usize) {
     // Safety: the following two methods require that the rotation amount
     // be less than half the length of the deque.
     //
-    // `wrap_copy` requres that `min(x, cap() - x) + copy_len <= cap()`,
+    // `wrap_copy` requires that `min(x, cap() - x) + copy_len <= cap()`,
     // but than `min` is never more than half the capacity, regardless of x,
     // so it's sound to call here because we're calling with something
     // less than half the length, which is never above half the capacity.