File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1534,7 +1534,7 @@ impl<T: ?Sized> *const T {
1534
1534
/// `usize::max_value()`.
1535
1535
///
1536
1536
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
1537
- /// used with the `offset ` method.
1537
+ /// used with the `add ` method.
1538
1538
///
1539
1539
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
1540
1540
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that
@@ -2335,7 +2335,7 @@ impl<T: ?Sized> *mut T {
2335
2335
/// `usize::max_value()`.
2336
2336
///
2337
2337
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
2338
- /// used with the `offset ` method.
2338
+ /// used with the `add ` method.
2339
2339
///
2340
2340
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
2341
2341
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that
You can’t perform that action at this time.
0 commit comments