Skip to content

Commit 3f52d71

Browse files
committed
Update docs for ptr module.
PR #23104 moved `is_null` and `offset` to an inherent impl on the raw pointer type.
1 parent b0aad7d commit 3f52d71

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/libcore/ptr.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515
//! Working with unsafe pointers in Rust is uncommon,
1616
//! typically limited to a few patterns.
1717
//!
18-
//! Use the [`null` function](fn.null.html) to create null pointers,
19-
//! the [`is_null`](trait.PtrExt.html#tymethod.is_null)
20-
//! methods of the [`PtrExt` trait](trait.PtrExt.html) to check for null.
21-
//! The `PtrExt` trait is imported by the prelude, so `is_null` etc.
22-
//! work everywhere. The `PtrExt` also defines the `offset` method,
23-
//! for pointer math.
18+
//! Use the [`null` function](fn.null.html) to create null pointers, and
19+
//! the `is_null` method of the `*const T` type to check for null.
20+
//! The `*const T` type also defines the `offset` method, for pointer math.
2421
//!
2522
//! # Common ways to create unsafe pointers
2623
//!

0 commit comments

Comments
 (0)