Skip to content

Commit 04fa1d8

Browse files
committed
Fix typo “a Rc” → “an Rc”
1 parent a49e38e commit 04fa1d8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_data_structures/src/owning_ref/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ pub type VecRef<T, U = T> = OwningRef<Vec<T>, U>;
11461146
/// Typedef of an owning reference that uses a `String` as the owner.
11471147
pub type StringRef = OwningRef<String, str>;
11481148

1149-
/// Typedef of an owning reference that uses a `Rc` as the owner.
1149+
/// Typedef of an owning reference that uses an `Rc` as the owner.
11501150
pub type RcRef<T, U = T> = OwningRef<Rc<T>, U>;
11511151
/// Typedef of an owning reference that uses an `Arc` as the owner.
11521152
pub type ArcRef<T, U = T> = OwningRef<Arc<T>, U>;

library/alloc/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ impl<T: ?Sized> fmt::Pointer for Rc<T> {
17431743
#[cfg(not(no_global_oom_handling))]
17441744
#[stable(feature = "from_for_ptrs", since = "1.6.0")]
17451745
impl<T> From<T> for Rc<T> {
1746-
/// Converts a generic type `T` into a `Rc<T>`
1746+
/// Converts a generic type `T` into an `Rc<T>`
17471747
///
17481748
/// The conversion allocates on the heap and moves `t`
17491749
/// from the stack into it.

library/std/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ impl From<&CStr> for Arc<CStr> {
958958

959959
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
960960
impl From<CString> for Rc<CStr> {
961-
/// Converts a [`CString`] into a [`Rc`]`<CStr>` without copying or allocating.
961+
/// Converts a [`CString`] into an [`Rc`]`<CStr>` without copying or allocating.
962962
#[inline]
963963
fn from(s: CString) -> Rc<CStr> {
964964
let rc: Rc<[u8]> = Rc::from(s.into_inner());

library/std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ impl From<&OsStr> for Arc<OsStr> {
916916

917917
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
918918
impl From<OsString> for Rc<OsStr> {
919-
/// Converts an [`OsString`] into a [`Rc`]`<OsStr>` without copying or allocating.
919+
/// Converts an [`OsString`] into an [`Rc`]`<OsStr>` without copying or allocating.
920920
#[inline]
921921
fn from(s: OsString) -> Rc<OsStr> {
922922
let rc = s.inner.into_rc();

0 commit comments

Comments
 (0)