Skip to content

Commit 98ba95c

Browse files
committed
Capitalize safety comments
1 parent 1e7a071 commit 98ba95c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alloc/src/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl Global {
157157
}
158158
}
159159

160-
// Safety: Same as `AllocRef::grow`
160+
// SAFETY: Same as `AllocRef::grow`
161161
#[inline]
162162
unsafe fn grow_impl(
163163
&mut self,

alloc/src/collections/vec_deque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ impl<T> VecDeque<T> {
23922392
}
23932393
}
23942394

2395-
// Safety: the following two methods require that the rotation amount
2395+
// SAFETY: the following two methods require that the rotation amount
23962396
// be less than half the length of the deque.
23972397
//
23982398
// `wrap_copy` requires that `min(x, cap() - x) + copy_len <= cap()`,

0 commit comments

Comments
 (0)