Skip to content

Commit 0af3e70

Browse files
committed
verb agreement in core::convert docs
1 parent 641204a commit 0af3e70

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/libcore/convert.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
//!
2020
//! - Impl the `As*` traits for reference-to-reference conversions
2121
//! - Impl the `Into` trait when you want to consume the value in the conversion
22-
//! - The `From` trait is the most flexible, useful for values _and_ references conversions
22+
//! - The `From` trait is the most flexible, useful for value _and_ reference conversions
2323
//!
24-
//! As a library writer, you should prefer implementing `From<T>` rather than
25-
//! `Into<U>`, as `From` provides greater flexibility and offer the equivalent `Into`
24+
//! As a library author, you should prefer implementing `From<T>` rather than
25+
//! `Into<U>`, as `From` provides greater flexibility and offers an equivalent `Into`
2626
//! implementation for free, thanks to a blanket implementation in the standard library.
2727
//!
2828
//! **Note: these traits must not fail**. If the conversion can fail, you must use a dedicated
29-
//! method which return an `Option<T>` or a `Result<T, E>`.
29+
//! method which returns an `Option<T>` or a `Result<T, E>`.
3030
//!
3131
//! # Generic impl
3232
//!
@@ -49,7 +49,7 @@ use marker::Sized;
4949
/// [book]: ../../book/borrow-and-asref.html
5050
///
5151
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
52-
/// return an `Option<T>` or a `Result<T, E>`.
52+
/// returns an `Option<T>` or a `Result<T, E>`.
5353
///
5454
/// # Examples
5555
///
@@ -82,7 +82,7 @@ pub trait AsRef<T: ?Sized> {
8282
/// A cheap, mutable reference-to-mutable reference conversion.
8383
///
8484
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
85-
/// return an `Option<T>` or a `Result<T, E>`.
85+
/// returns an `Option<T>` or a `Result<T, E>`.
8686
///
8787
/// # Generic Impls
8888
///
@@ -99,10 +99,10 @@ pub trait AsMut<T: ?Sized> {
9999
/// A conversion that consumes `self`, which may or may not be expensive.
100100
///
101101
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
102-
/// return an `Option<T>` or a `Result<T, E>`.
102+
/// returns an `Option<T>` or a `Result<T, E>`.
103103
///
104-
/// Library writer should not implement directly this trait, but should prefer the implementation
105-
/// of the `From` trait, which offer greater flexibility and provide the equivalent `Into`
104+
/// Library authors should not directly implement this trait, but should prefer implementing
105+
/// the `From` trait, which offers greater flexibility and provides an equivalent `Into`
106106
/// implementation for free, thanks to a blanket implementation in the standard library.
107107
///
108108
/// # Examples
@@ -134,7 +134,7 @@ pub trait Into<T>: Sized {
134134
/// Construct `Self` via a conversion.
135135
///
136136
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
137-
/// return an `Option<T>` or a `Result<T, E>`.
137+
/// returns an `Option<T>` or a `Result<T, E>`.
138138
///
139139
/// # Examples
140140
///

0 commit comments

Comments
 (0)