diff options
| author | Matthew Piziak <matthew.piziak@gmail.com> | 2016-08-12 12:15:06 -0400 |
|---|---|---|
| committer | Matthew Piziak <matthew.piziak@gmail.com> | 2016-08-12 12:20:56 -0400 |
| commit | bfca761c8c61bb0b9aeb3f3289fa90e084fd9882 (patch) | |
| tree | 6d0f3b728d9b71b33be6a6e344dc3d989e7cdae5 | |
| parent | 11f880588791930cb130071c2cb972fc3c3354ed (diff) | |
| download | rust-bfca761c8c61bb0b9aeb3f3289fa90e084fd9882.tar.gz rust-bfca761c8c61bb0b9aeb3f3289fa90e084fd9882.zip | |
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.
| -rw-r--r-- | src/libcore/convert.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 48421abc7bb..e68f973d8d9 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -71,8 +71,8 @@ use result::Result; /// /// # Generic Impls /// -/// - `AsRef` auto-dereference if the inner type is a reference or a mutable -/// reference (eg: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`) +/// - `AsRef` auto-dereferences if the inner type is a reference or a mutable +/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`) /// #[stable(feature = "rust1", since = "1.0.0")] pub trait AsRef<T: ?Sized> { @@ -88,8 +88,8 @@ pub trait AsRef<T: ?Sized> { /// /// # Generic Impls /// -/// - `AsMut` auto-dereference if the inner type is a reference or a mutable -/// reference (eg: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`) +/// - `AsMut` auto-dereferences if the inner type is a reference or a mutable +/// reference (e.g.: `foo.as_ref()` will work the same if `foo` has type `&mut Foo` or `&&mut Foo`) /// #[stable(feature = "rust1", since = "1.0.0")] pub trait AsMut<T: ?Sized> { |
