diff options
| author | kennytm <kennytm@gmail.com> | 2018-07-16 23:11:32 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-07-17 02:12:32 +0800 |
| commit | bc2f1093d8b7ec017bb0952a651fdc80ae1058b1 (patch) | |
| tree | 7412746836d8bcc2ca053ff49590ad3298566c29 | |
| parent | f2f6cea105ba37001d9f9a489e38bfb87385c1a6 (diff) | |
| parent | 02edc7e4ffde4c020832f5248cd4fc12650d9810 (diff) | |
| download | rust-bc2f1093d8b7ec017bb0952a651fdc80ae1058b1.tar.gz rust-bc2f1093d8b7ec017bb0952a651fdc80ae1058b1.zip | |
Rollup merge of #52392 - heycam:patch-1, r=steveklabnik
AsRef doc wording tweaks
| -rw-r--r-- | src/libcore/convert.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 7324df95bc5..11cc4ffecf0 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -63,9 +63,9 @@ /// /// The key difference between the two traits is the intention: /// -/// - Use `AsRef` when goal is to simply convert into a reference -/// - Use `Borrow` when goal is related to writing code that is agnostic to the -/// type of borrow and if is reference or value +/// - Use `AsRef` when the goal is to simply convert into a reference +/// - Use `Borrow` when the goal is related to writing code that is agnostic to +/// the type of borrow and whether it is a reference or value /// /// See [the book][book] for a more detailed comparison. /// |
