Skip to content

Commit 02edc7e

Browse files
authored
AsRef doc wording tweaks
1 parent b486d3d commit 02edc7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/convert.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
///
6464
/// The key difference between the two traits is the intention:
6565
///
66-
/// - Use `AsRef` when goal is to simply convert into a reference
67-
/// - Use `Borrow` when goal is related to writing code that is agnostic to the
68-
/// type of borrow and if is reference or value
66+
/// - Use `AsRef` when the goal is to simply convert into a reference
67+
/// - Use `Borrow` when the goal is related to writing code that is agnostic to
68+
/// the type of borrow and whether it is a reference or value
6969
///
7070
/// See [the book][book] for a more detailed comparison.
7171
///

0 commit comments

Comments
 (0)