summary refs log tree commit diff
path: root/src/libcore/ptr.rs
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-03-22 01:42:23 +0100
committerStjepan Glavina <stjepang@gmail.com>2017-03-22 17:19:52 +0100
commitd6da1d9b46f7090b18be357bef8d55ffa3673d2f (patch)
treeb1af890ad3f0728432eec3c8049e20789b7eb75d /src/libcore/ptr.rs
parentcab4bff3de1a61472f3c2e7752ef54b87344d1c9 (diff)
downloadrust-d6da1d9b46f7090b18be357bef8d55ffa3673d2f.tar.gz
rust-d6da1d9b46f7090b18be357bef8d55ffa3673d2f.zip
Various fixes to wording consistency in the docs
Diffstat (limited to 'src/libcore/ptr.rs')
-rw-r--r--src/libcore/ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 98544f8ba5e..d2830a6d00c 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -380,7 +380,7 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
 
 #[lang = "const_ptr"]
 impl<T: ?Sized> *const T {
-    /// Returns true if the pointer is null.
+    /// Returns `true` if the pointer is null.
     ///
     /// # Examples
     ///
@@ -504,7 +504,7 @@ impl<T: ?Sized> *const T {
 
 #[lang = "mut_ptr"]
 impl<T: ?Sized> *mut T {
-    /// Returns true if the pointer is null.
+    /// Returns `true` if the pointer is null.
     ///
     /// # Examples
     ///