diff options
| author | Ivan Petkov <ivanppetkov@gmail.com> | 2015-02-23 11:05:55 -0800 |
|---|---|---|
| committer | Ivan Petkov <ivanppetkov@gmail.com> | 2015-02-23 11:05:55 -0800 |
| commit | dab394c2db5d62dce64ac13af35bb2f18357c9d8 (patch) | |
| tree | 0016c8846ff75133c0b48da5c39191b10d714f37 /src/libcore/ptr.rs | |
| parent | f0f7ca27de6b4e03f30012656dad270cda55a363 (diff) | |
| download | rust-dab394c2db5d62dce64ac13af35bb2f18357c9d8.tar.gz rust-dab394c2db5d62dce64ac13af35bb2f18357c9d8.zip | |
Add documentation to associated types in libcore, libstd
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 16b84dcf18e..b44cc899787 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -249,6 +249,7 @@ pub unsafe fn write<T>(dst: *mut T, src: T) { /// Methods on raw pointers #[stable(feature = "rust1", since = "1.0.0")] pub trait PtrExt: Sized { + /// The type which is being pointed at type Target; /// Returns true if the pointer is null. @@ -284,6 +285,7 @@ pub trait PtrExt: Sized { /// Methods on mutable raw pointers #[stable(feature = "rust1", since = "1.0.0")] pub trait MutPtrExt { + /// The type which is being pointed at type Target; /// Returns `None` if the pointer is null, or else returns a mutable |
