Rollup merge of #76504 - Flying-Toast:master, r=lcnr
Capitalize safety comments
This commit is contained in:
commit
c18fa460a4
19 changed files with 42 additions and 42 deletions
|
@ -157,7 +157,7 @@ impl Global {
|
|||
}
|
||||
}
|
||||
|
||||
// Safety: Same as `AllocRef::grow`
|
||||
// SAFETY: Same as `AllocRef::grow`
|
||||
#[inline]
|
||||
unsafe fn grow_impl(
|
||||
&mut self,
|
||||
|
|
|
@ -2388,7 +2388,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()`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue