Skip to content

Commit b9b464b

Browse files
authored
Rollup merge of #73148 - DarkEld3r:patch-1, r=jonas-schievink
Fix a typo (size of the size)
2 parents 2adefb3 + 54fdb57 commit b9b464b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libcore/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl<T> [T] {
409409
/// The returned range is half-open, which means that the end pointer
410410
/// points *one past* the last element of the slice. This way, an empty
411411
/// slice is represented by two equal pointers, and the difference between
412-
/// the two pointers represents the size of the size.
412+
/// the two pointers represents the size of the slice.
413413
///
414414
/// See [`as_ptr`] for warnings on using these pointers. The end pointer
415415
/// requires extra caution, as it does not point to a valid element in the
@@ -464,7 +464,7 @@ impl<T> [T] {
464464
/// The returned range is half-open, which means that the end pointer
465465
/// points *one past* the last element of the slice. This way, an empty
466466
/// slice is represented by two equal pointers, and the difference between
467-
/// the two pointers represents the size of the size.
467+
/// the two pointers represents the size of the slice.
468468
///
469469
/// See [`as_mut_ptr`] for warnings on using these pointers. The end
470470
/// pointer requires extra caution, as it does not point to a valid element

0 commit comments

Comments
 (0)