diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 17:13:37 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 17:13:37 -0700 |
| commit | 6a44f24b9e05c67cf2d0e62234e8395e283e21d0 (patch) | |
| tree | afffec3401f6f003e8d14182736ad31d075915e3 | |
| parent | 690ee161c6762dba64c084ad05317057b9018124 (diff) | |
| parent | 3f52d719dc705107de32991c8ab88baf586f7365 (diff) | |
| download | rust-6a44f24b9e05c67cf2d0e62234e8395e283e21d0.tar.gz rust-6a44f24b9e05c67cf2d0e62234e8395e283e21d0.zip | |
rollup merge of #23644: mbrubeck/doc-edit
PR #23104 moved `is_null` and `offset` to an inherent impl on the raw pointer type. I'm not sure whether or how it's possible to link to docs for that impl. r? @steveklabnik
| -rw-r--r-- | src/libcore/ptr.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 58bbb0b38c1..d92622eeb70 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 //! |
