Skip to content

Commit 766db32

Browse files
committed
Fix more “a”/“an” typos
1 parent 1d265eb commit 766db32

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/array/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<T, const N: usize> IntoIter<T, N> {
4545
/// use std::array;
4646
///
4747
/// for value in array::IntoIter::new([1, 2, 3, 4, 5]) {
48-
/// // The type of `value` is a `i32` here, instead of `&i32`
48+
/// // The type of `value` is an `i32` here, instead of `&i32`
4949
/// let _: i32 = value;
5050
/// }
5151
/// ```

std/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ impl<'a> From<&'a CString> for Cow<'a, CStr> {
939939

940940
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
941941
impl From<CString> for Arc<CStr> {
942-
/// Converts a [`CString`] into a [`Arc`]`<CStr>` without copying or allocating.
942+
/// Converts a [`CString`] into an [`Arc`]`<CStr>` without copying or allocating.
943943
#[inline]
944944
fn from(s: CString) -> Arc<CStr> {
945945
let arc: Arc<[u8]> = Arc::from(s.into_inner());

std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ impl Clone for Box<OsStr> {
897897

898898
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
899899
impl From<OsString> for Arc<OsStr> {
900-
/// Converts an [`OsString`] into a [`Arc`]`<OsStr>` without copying or allocating.
900+
/// Converts an [`OsString`] into an [`Arc`]`<OsStr>` without copying or allocating.
901901
#[inline]
902902
fn from(s: OsString) -> Arc<OsStr> {
903903
let arc = s.inner.into_arc();

std/src/sys_common/remutex/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn smoke() {
3030
#[test]
3131
fn is_mutex() {
3232
let m = unsafe {
33-
// FIXME: Simplify this if Arc gets a Arc::get_pin_mut.
33+
// FIXME: Simplify this if Arc gets an Arc::get_pin_mut.
3434
let mut m = Arc::new(ReentrantMutex::new(RefCell::new(0)));
3535
Pin::new_unchecked(Arc::get_mut_unchecked(&mut m)).init();
3636
Pin::new_unchecked(m)
@@ -52,7 +52,7 @@ fn is_mutex() {
5252
#[test]
5353
fn trylock_works() {
5454
let m = unsafe {
55-
// FIXME: Simplify this if Arc gets a Arc::get_pin_mut.
55+
// FIXME: Simplify this if Arc gets an Arc::get_pin_mut.
5656
let mut m = Arc::new(ReentrantMutex::new(()));
5757
Pin::new_unchecked(Arc::get_mut_unchecked(&mut m)).init();
5858
Pin::new_unchecked(m)

0 commit comments

Comments
 (0)