Skip to content

Commit eae7987

Browse files
committed
fix typos in new pointer conversion docs
1 parent f26f981 commit eae7987

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<T: ?Sized> *const T {
239239
/// # Safety
240240
///
241241
/// When calling this method, you have to ensure that *either* the pointer is null *or*
242-
/// the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion)
242+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
243243
///
244244
/// # Examples
245245
///

Diff for: core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
//! even if they only modify `UnsafeCell` data.
8888
//!
8989
//! If a pointer follows all of these rules, it is said to be
90-
//! *convertable to a reference*.
90+
//! *convertible to a reference*.
9191
// ^ we use this term instead of saying that the produced reference must
9292
// be valid, as the validity of a reference is easily confused for the
9393
// validity of the thing it refers to, and while the two concepts are

Diff for: core/src/ptr/mut_ptr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<T: ?Sized> *mut T {
247247
/// # Safety
248248
///
249249
/// When calling this method, you have to ensure that *either* the pointer is null *or*
250-
/// the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion)
250+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
251251
///
252252
/// # Examples
253253
///
@@ -296,7 +296,7 @@ impl<T: ?Sized> *mut T {
296296
///
297297
/// # Safety
298298
///
299-
/// When calling this method, you have to ensure that the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion)
299+
/// When calling this method, you have to ensure that the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
300300
///
301301
/// # Examples
302302
///
@@ -330,7 +330,7 @@ impl<T: ?Sized> *mut T {
330330
/// # Safety
331331
///
332332
/// When calling this method, you have to ensure that *either* the pointer is null *or*
333-
/// the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion).
333+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
334334
/// Note that because the created reference is to `MaybeUninit<T>`, the
335335
/// source pointer can point to uninitialized memory.
336336
///
@@ -566,7 +566,7 @@ impl<T: ?Sized> *mut T {
566566
///
567567
/// When calling this method, you have to ensure that *either*
568568
/// the pointer is null *or*
569-
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
569+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
570570
///
571571
///
572572
/// # Examples

Diff for: core/src/ptr/non_null.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<T: Sized> NonNull<T> {
129129
/// # Safety
130130
///
131131
/// When calling this method, you have to ensure that
132-
/// the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion).
132+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
133133
/// Note that because the created reference is to `MaybeUninit<T>`, the
134134
/// source pointer can point to uninitialized memory.
135135
#[inline]
@@ -153,7 +153,7 @@ impl<T: Sized> NonNull<T> {
153153
/// # Safety
154154
///
155155
/// When calling this method, you have to ensure that
156-
/// the pointer is [convirtible to a reference](crate::ptr#pointer-to-reference-conversion).
156+
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
157157
/// Note that because the created reference is to `MaybeUninit<T>`, the
158158
/// source pointer can point to uninitialized memory.
159159
#[inline]

0 commit comments

Comments
 (0)