Skip to content

Commit 496adcf

Browse files
authored
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.
1 parent 8a1f803 commit 496adcf

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)