Skip to content

Commit e41ff7f

Browse files
authored
Rollup merge of rust-lang#35622 - matthew-piziak:convert-docs-typos, r=apasel422
fix small typos in std::convert documentation Fix subject-verb agreement in copypasta: "`AsRef` dereference" to "`AsRef` dereferences". Formalize "eg" to "e.g." Italicization of common Latin abbreviations seems to be going out of style in written English, so I left it plain.
2 parents e95ff85 + bfca761 commit e41ff7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/convert.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ use result::Result;
7171
///
7272
/// # Generic Impls
7373
///
74-
/// - `AsRef` auto-dereference if the inner type is a reference or a mutable
75-
/// reference (eg: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`)
74+
/// - `AsRef` auto-dereferences if the inner type is a reference or a mutable
75+
/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`)
7676
///
7777
#[stable(feature = "rust1", since = "1.0.0")]
7878
pub trait AsRef<T: ?Sized> {
@@ -88,8 +88,8 @@ pub trait AsRef<T: ?Sized> {
8888
///
8989
/// # Generic Impls
9090
///
91-
/// - `AsMut` auto-dereference if the inner type is a reference or a mutable
92-
/// reference (eg: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`)
91+
/// - `AsMut` auto-dereferences if the inner type is a reference or a mutable
92+
/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`)
9393
///
9494
#[stable(feature = "rust1", since = "1.0.0")]
9595
pub trait AsMut<T: ?Sized> {

0 commit comments

Comments
 (0)