Rollup merge of #134570 - hkBst:patch-3, r=joboet
remove reference to dangling from slice::Iter This aligns the comment with reality and with IterMut. Also dangling does not seem to take any arguments.
This commit is contained in:
commit
04c804eb46
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ pub struct Iter<'a, T: 'a> {
|
|||
ptr: NonNull<T>,
|
||||
/// For non-ZSTs, the non-null pointer to the past-the-end element.
|
||||
///
|
||||
/// For ZSTs, this is `ptr::dangling(len)`.
|
||||
/// For ZSTs, this is `ptr::without_provenance_mut(len)`.
|
||||
end_or_len: *const T,
|
||||
_marker: PhantomData<&'a T>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue