about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-03-23 11:11:12 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-03-23 15:57:20 -0700
commit3f52d719dc705107de32991c8ab88baf586f7365 (patch)
tree7550b07c05d97e1a5840fe89782b4e62b596e1e4
parentb0aad7dd4fad8d7e2e2f877a511a637258949597 (diff)
downloadrust-3f52d719dc705107de32991c8ab88baf586f7365.tar.gz
rust-3f52d719dc705107de32991c8ab88baf586f7365.zip
Update docs for ptr module.
PR #23104 moved `is_null` and `offset` to an inherent impl on the raw pointer
type.
-rw-r--r--src/libcore/ptr.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 1cbea057e88..e8ac4078043 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -15,12 +15,9 @@
 //! Working with unsafe pointers in Rust is uncommon,
 //! typically limited to a few patterns.
 //!
-//! Use the [`null` function](fn.null.html) to create null pointers,
-//! the [`is_null`](trait.PtrExt.html#tymethod.is_null)
-//! methods of the [`PtrExt` trait](trait.PtrExt.html) to check for null.
-//! The `PtrExt` trait is imported by the prelude, so `is_null` etc.
-//! work everywhere. The `PtrExt` also defines the `offset` method,
-//! for pointer math.
+//! Use the [`null` function](fn.null.html) to create null pointers, and
+//! the `is_null` method of the `*const T` type  to check for null.
+//! The `*const T` type also defines the `offset` method, for pointer math.
 //!
 //! # Common ways to create unsafe pointers
 //!