Rollup merge of #52392 - heycam:patch-1, r=steveklabnik

AsRef doc wording tweaks
This commit is contained in:
kennytm 2018-07-16 23:11:32 +08:00
commit bc2f1093d8
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C
1 changed files with 3 additions and 3 deletions

View 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.
///