about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCharles Gleason <36055314+crgl@users.noreply.github.com>2020-01-28 11:27:31 -0500
committerGitHub <noreply@github.com>2020-01-28 11:27:31 -0500
commit3caa17b468e50c885f56e7872200e9a76815462b (patch)
tree4cf4d7a8e304fbb0411a5aaac0576740e8c75f76
parent8651aa066fdbbcfaa082531969469c3fa289de9e (diff)
downloadrust-3caa17b468e50c885f56e7872200e9a76815462b.tar.gz
rust-3caa17b468e50c885f56e7872200e9a76815462b.zip
Format safety comment as per tidy
Co-Authored-By: Ashley Mannix <ashleymannix@live.com.au>
-rw-r--r--src/liballoc/collections/btree/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/btree/map.rs b/src/liballoc/collections/btree/map.rs
index 12174ffcbfa..58cb561938a 100644
--- a/src/liballoc/collections/btree/map.rs
+++ b/src/liballoc/collections/btree/map.rs
@@ -249,7 +249,7 @@ impl<K: Clone + Ord, V: Clone> BTreeClone for BTreeMap<K, V> {
         // the BTree invariants are maintained at the end of the loop
         while siter.front != siter.back {
             if let Some((ok, ov)) = oiter.next() {
-                // This is safe because the `siter.front != siter.back` check
+                // SAFETY: This is safe because the `siter.front != siter.back` check
                 // ensures that `siter` is nonempty
                 let (sk, sv) = unsafe { siter.next_unchecked() };
                 sk.clone_from(ok);