We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f099359 commit d85e488Copy full SHA for d85e488
src/libcore/ptr.rs
@@ -68,10 +68,10 @@ unsafe fn position<T>(buf: *T, f: fn(T) -> bool) -> uint {
68
#[inline(always)]
69
pure fn null<T>() -> *T unsafe { ret unsafe::reinterpret_cast(0u); }
70
71
-#[doc = "Returns true if the pointer is equal to the null pointer"]
+#[doc = "Returns true if the pointer is equal to the null pointer."]
72
pure fn is_null<T>(ptr: *const T) -> bool { ptr == null() }
73
74
-#[doc = "Returns true if the pointer is not equal to the null pointer"]
+#[doc = "Returns true if the pointer is not equal to the null pointer."]
75
pure fn is_not_null<T>(ptr: *const T) -> bool { !is_null(ptr) }
76
77
#[doc = "
0 commit comments