File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ impl<T: ?Sized> *const T {
405
405
}
406
406
407
407
/// Calculates the offset from a pointer. `count` is in units of T; e.g. a
408
- /// `count` of 3 represents a pointer offset of `3 * sizeof ::<T>()` bytes.
408
+ /// `count` of 3 represents a pointer offset of `3 * size_of ::<T>()` bytes.
409
409
///
410
410
/// # Safety
411
411
///
@@ -435,7 +435,7 @@ impl<T: ?Sized> *const T {
435
435
436
436
/// Calculates the offset from a pointer using wrapping arithmetic.
437
437
/// `count` is in units of T; e.g. a `count` of 3 represents a pointer
438
- /// offset of `3 * sizeof ::<T>()` bytes.
438
+ /// offset of `3 * size_of ::<T>()` bytes.
439
439
///
440
440
/// # Safety
441
441
///
@@ -529,7 +529,7 @@ impl<T: ?Sized> *mut T {
529
529
}
530
530
531
531
/// Calculates the offset from a pointer. `count` is in units of T; e.g. a
532
- /// `count` of 3 represents a pointer offset of `3 * sizeof ::<T>()` bytes.
532
+ /// `count` of 3 represents a pointer offset of `3 * size_of ::<T>()` bytes.
533
533
///
534
534
/// # Safety
535
535
///
@@ -558,7 +558,7 @@ impl<T: ?Sized> *mut T {
558
558
559
559
/// Calculates the offset from a pointer using wrapping arithmetic.
560
560
/// `count` is in units of T; e.g. a `count` of 3 represents a pointer
561
- /// offset of `3 * sizeof ::<T>()` bytes.
561
+ /// offset of `3 * size_of ::<T>()` bytes.
562
562
///
563
563
/// # Safety
564
564
///
You can’t perform that action at this time.
0 commit comments