Skip to content

Commit 6cc84ac

Browse files
committed
remove unnecessary emphasis in doc comment
During review of the previous commit, @joshtriplett noticed that the emphasis on 'the same' is unnecessary. For consistency, remove it on the offset() functions, as well.
1 parent e8ec498 commit 6cc84ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ impl<T: ?Sized> *const T {
10371037
/// Behavior:
10381038
///
10391039
/// * Both the starting and resulting pointer must be either in bounds or one
1040-
/// byte past the end of *the same* allocated object.
1040+
/// byte past the end of the same allocated object.
10411041
///
10421042
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
10431043
///
@@ -1657,7 +1657,7 @@ impl<T: ?Sized> *mut T {
16571657
/// Behavior:
16581658
///
16591659
/// * Both the starting and resulting pointer must be either in bounds or one
1660-
/// byte past the end of *the same* allocated object.
1660+
/// byte past the end of the same allocated object.
16611661
///
16621662
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
16631663
///

0 commit comments

Comments
 (0)