File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ impl<T: ?Sized> *const T {
434
434
}
435
435
436
436
/// Calculates the offset from a pointer. `count` is in units of T; e.g. a
437
- /// `count` of 3 represents a pointer offset of `3 * sizeof ::<T>()` bytes.
437
+ /// `count` of 3 represents a pointer offset of `3 * size_of ::<T>()` bytes.
438
438
///
439
439
/// # Safety
440
440
///
@@ -464,7 +464,7 @@ impl<T: ?Sized> *const T {
464
464
465
465
/// Calculates the offset from a pointer using wrapping arithmetic.
466
466
/// `count` is in units of T; e.g. a `count` of 3 represents a pointer
467
- /// offset of `3 * sizeof ::<T>()` bytes.
467
+ /// offset of `3 * size_of ::<T>()` bytes.
468
468
///
469
469
/// # Safety
470
470
///
@@ -558,7 +558,7 @@ impl<T: ?Sized> *mut T {
558
558
}
559
559
560
560
/// Calculates the offset from a pointer. `count` is in units of T; e.g. a
561
- /// `count` of 3 represents a pointer offset of `3 * sizeof ::<T>()` bytes.
561
+ /// `count` of 3 represents a pointer offset of `3 * size_of ::<T>()` bytes.
562
562
///
563
563
/// # Safety
564
564
///
@@ -587,7 +587,7 @@ impl<T: ?Sized> *mut T {
587
587
588
588
/// Calculates the offset from a pointer using wrapping arithmetic.
589
589
/// `count` is in units of T; e.g. a `count` of 3 represents a pointer
590
- /// offset of `3 * sizeof ::<T>()` bytes.
590
+ /// offset of `3 * size_of ::<T>()` bytes.
591
591
///
592
592
/// # Safety
593
593
///
You can’t perform that action at this time.
0 commit comments