Skip to content

Commit 0d01063

Browse files
authored
Unrolled build for rust-lang#134570
Rollup merge of rust-lang#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.
2 parents bad2aa4 + 496adcf commit 0d01063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct Iter<'a, T: 'a> {
6868
ptr: NonNull<T>,
6969
/// For non-ZSTs, the non-null pointer to the past-the-end element.
7070
///
71-
/// For ZSTs, this is `ptr::dangling(len)`.
71+
/// For ZSTs, this is `ptr::without_provenance_mut(len)`.
7272
end_or_len: *const T,
7373
_marker: PhantomData<&'a T>,
7474
}

0 commit comments

Comments
 (0)