diff options
| author | Jan Niehusmann <jan@gondor.com> | 2018-10-14 20:23:33 +0000 |
|---|---|---|
| committer | Jan Niehusmann <jan@gondor.com> | 2018-10-14 20:26:23 +0000 |
| commit | 6cc84acc60c21389107dac5f9dd70f08862519fd (patch) | |
| tree | ac286a44eb414628c6116acbb788c90849a1ebd9 /src/libcore | |
| parent | e8ec4987a8b26ea0cca076796689d2b1c00812a5 (diff) | |
| download | rust-6cc84acc60c21389107dac5f9dd70f08862519fd.tar.gz rust-6cc84acc60c21389107dac5f9dd70f08862519fd.zip | |
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.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 19a4fb93c30..1c761ba21b3 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -1037,7 +1037,7 @@ impl<T: ?Sized> *const T { /// Behavior: /// /// * Both the starting and resulting pointer must be either in bounds or one - /// byte past the end of *the same* allocated object. + /// byte past the end of the same allocated object. /// /// * The computed offset, **in bytes**, cannot overflow an `isize`. /// @@ -1657,7 +1657,7 @@ impl<T: ?Sized> *mut T { /// Behavior: /// /// * Both the starting and resulting pointer must be either in bounds or one - /// byte past the end of *the same* allocated object. + /// byte past the end of the same allocated object. /// /// * The computed offset, **in bytes**, cannot overflow an `isize`. /// |
