about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorFlying-Toast <38232168+Flying-Toast@users.noreply.github.com>2020-09-08 22:37:18 -0400
committerFlying-Toast <38232168+Flying-Toast@users.noreply.github.com>2020-09-08 22:37:18 -0400
commit2799aec6ab4ae35f1a2064f941a9f2a270953b63 (patch)
treef6cb6109703f22c96a20d490270aa84cac6ac402 /library/alloc/src
parentc66789d572ab3d950bc187d3bca3bc0042023358 (diff)
Capitalize safety comments
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/alloc.rs2
-rw-r--r--library/alloc/src/collections/vec_deque.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs
index 5f09f8def4d..341c6816197 100644
--- a/library/alloc/src/alloc.rs
+++ b/library/alloc/src/alloc.rs
@@ -157,7 +157,7 @@ impl Global {
         }
     }
 
-    // Safety: Same as `AllocRef::grow`
+    // SAFETY: Same as `AllocRef::grow`
     #[inline]
     unsafe fn grow_impl(
         &mut self,
diff --git a/library/alloc/src/collections/vec_deque.rs b/library/alloc/src/collections/vec_deque.rs
index cc2ef25a5a7..172b25b9d17 100644
--- a/library/alloc/src/collections/vec_deque.rs
+++ b/library/alloc/src/collections/vec_deque.rs
@@ -2392,7 +2392,7 @@ impl<T> VecDeque<T> {
         }
     }
 
-    // Safety: the following two methods require that the rotation amount
+    // SAFETY: the following two methods require that the rotation amount
     // be less than half the length of the deque.
     //
     // `wrap_copy` requires that `min(x, cap() - x) + copy_len <= cap()`,