]> git.lizzy.rs Git - rust.git/commitdiff
AsRef doc wording tweaks
authorCameron McCormack <cam@mcc.id.au>
Sun, 15 Jul 2018 00:16:36 +0000 (10:16 +1000)
committerGitHub <noreply@github.com>
Sun, 15 Jul 2018 00:16:36 +0000 (10:16 +1000)
src/libcore/convert.rs

index 7324df95bc5d5691306ba78924148e593abb4ed4..11cc4ffecf0055af511be82a17af07b08ecf626d 100644 (file)
@@ -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.
 ///