summary refs log tree commit diff
path: root/src/libcore/ptr.rs
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2015-02-23 11:05:55 -0800
committerIvan Petkov <ivanppetkov@gmail.com>2015-02-23 11:05:55 -0800
commitdab394c2db5d62dce64ac13af35bb2f18357c9d8 (patch)
tree0016c8846ff75133c0b48da5c39191b10d714f37 /src/libcore/ptr.rs
parentf0f7ca27de6b4e03f30012656dad270cda55a363 (diff)
downloadrust-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.rs2
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