AsRef doc wording tweaks
This commit is contained in:
parent
b486d3d13f
commit
02edc7e4ff
|
@ -63,9 +63,9 @@
|
||||||
///
|
///
|
||||||
/// The key difference between the two traits is the intention:
|
/// The key difference between the two traits is the intention:
|
||||||
///
|
///
|
||||||
/// - Use `AsRef` when goal is to simply convert into a reference
|
/// - Use `AsRef` when the goal is to simply convert into a reference
|
||||||
/// - Use `Borrow` when goal is related to writing code that is agnostic to the
|
/// - Use `Borrow` when the goal is related to writing code that is agnostic to
|
||||||
/// type of borrow and if is reference or value
|
/// the type of borrow and whether it is a reference or value
|
||||||
///
|
///
|
||||||
/// See [the book][book] for a more detailed comparison.
|
/// See [the book][book] for a more detailed comparison.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue