We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66c2cb7 commit 36aba53Copy full SHA for 36aba53
core/src/ptr/const_ptr.rs
@@ -726,7 +726,7 @@ impl<T: ?Sized> *const T {
726
/// }
727
///
728
/// // This would be incorrect, as the pointers are not correctly ordered:
729
- /// // ptr1.offset_from(ptr2)
+ /// // ptr1.sub_ptr(ptr2)
730
/// ```
731
#[unstable(feature = "ptr_sub_ptr", issue = "95892")]
732
#[rustc_const_unstable(feature = "const_ptr_sub_ptr", issue = "95892")]
0 commit comments