about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCameron McCormack <cam@mcc.id.au>2018-07-15 10:16:36 +1000
committerGitHub <noreply@github.com>2018-07-15 10:16:36 +1000
commit02edc7e4ffde4c020832f5248cd4fc12650d9810 (patch)
treefb38c1fda4e9ff7869a84f3cbbad7a6973c4c057 /src/libcore
parentb486d3d13f1f8127614e1e182439c55fbac82964 (diff)
downloadrust-02edc7e4ffde4c020832f5248cd4fc12650d9810.tar.gz
rust-02edc7e4ffde4c020832f5248cd4fc12650d9810.zip
AsRef doc wording tweaks
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/convert.rs6
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.
 ///