File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,10 @@ mod prim_unit { }
188
188
/// Working with raw pointers in Rust is uncommon,
189
189
/// typically limited to a few patterns.
190
190
///
191
- /// Use the [`null`] function to create null pointers, and the [`is_null`] method
192
- /// of the `*const T` type to check for null. The `*const T` type also defines
193
- /// the [`offset`] method, for pointer math.
191
+ /// Use the [`null`] and [`null_mut`] functions to create null pointers, and the
192
+ /// [`is_null`] method of the `*const T` and `*mut T` types to check for null.
193
+ /// The `*const T` and `*mut T` types also define the [`offset`] method, for
194
+ /// pointer math.
194
195
///
195
196
/// # Common ways to create raw pointers
196
197
///
@@ -261,6 +262,7 @@ mod prim_unit { }
261
262
/// *[See also the `std::ptr` module](ptr/index.html).*
262
263
///
263
264
/// [`null`]: ../std/ptr/fn.null.html
265
+ /// [`null_mut`]: ../std/ptr/fn.null_mut.html
264
266
/// [`is_null`]: ../std/primitive.pointer.html#method.is_null
265
267
/// [`offset`]: ../std/primitive.pointer.html#method.offset
266
268
/// [`into_raw`]: ../std/boxed/struct.Box.html#method.into_raw
You can’t perform that action at this time.
0 commit comments