Skip to content

Commit 3caa17b

Browse files
crglKodrAus
andauthored
Format safety comment as per tidy
Co-Authored-By: Ashley Mannix <[email protected]>
1 parent 8651aa0 commit 3caa17b

File tree

1 file changed

+1
-1
lines changed
  • src/liballoc/collections/btree

1 file changed

+1
-1
lines changed

src/liballoc/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<K: Clone + Ord, V: Clone> BTreeClone for BTreeMap<K, V> {
249249
// the BTree invariants are maintained at the end of the loop
250250
while siter.front != siter.back {
251251
if let Some((ok, ov)) = oiter.next() {
252-
// This is safe because the `siter.front != siter.back` check
252+
// SAFETY: This is safe because the `siter.front != siter.back` check
253253
// ensures that `siter` is nonempty
254254
let (sk, sv) = unsafe { siter.next_unchecked() };
255255
sk.clone_from(ok);

0 commit comments

Comments
 (0)