Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d43f5ea

Browse files
authoredApr 12, 2023
Rollup merge of rust-lang#110212 - RustEnthusiast:master, r=cuviper
Doc typo/grammar fix. Just fixes a grammatical error in `NonNull`'s unstable `as_uninit_ref` and `as_uninit_mut` methods.
2 parents bc8878b + 2f29108 commit d43f5ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎library/core/src/ptr/non_null.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<T: Sized> NonNull<T> {
9898
}
9999
}
100100

101-
/// Returns a shared references to the value. In contrast to [`as_ref`], this does not require
101+
/// Returns a shared reference to the value. In contrast to [`as_ref`], this does not require
102102
/// that the value has to be initialized.
103103
///
104104
/// For the mutable counterpart see [`as_uninit_mut`].
@@ -132,7 +132,7 @@ impl<T: Sized> NonNull<T> {
132132
unsafe { &*self.cast().as_ptr() }
133133
}
134134

135-
/// Returns a unique references to the value. In contrast to [`as_mut`], this does not require
135+
/// Returns a unique reference to the value. In contrast to [`as_mut`], this does not require
136136
/// that the value has to be initialized.
137137
///
138138
/// For the shared counterpart see [`as_uninit_ref`].

0 commit comments

Comments
 (0)
Please sign in to comment.