diff options
| author | bors <bors@rust-lang.org> | 2022-04-13 16:04:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-13 16:04:06 +0000 |
| commit | 0d13f6afeba4935499abe0c9a07426c94492c94e (patch) | |
| tree | 6e616ef0fddcb35f3ee85e0d39577d44182b0fb4 /library/core/src | |
| parent | ab33f71a8be01a93d4d14ee5755beeefe38f1946 (diff) | |
| parent | e95f2db98f347043e5ba7a3c2c8f7cc58248dae9 (diff) | |
Auto merge of #96015 - Dylan-DPC:rollup-vhdprid, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #93217 (Improve Rustdoc UI for scraped examples with multiline arguments, fix overflow in line numbers) - #95885 (Improve error message in case of missing checksum) - #95962 (Document that DirEntry holds the directory open) - #95991 (fix: wrong trait import suggestion for T:) - #96005 (Add missing article to fix "few" to "a few".) - #96006 (Add a missing article) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/convert/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index c7a9a818378..b30c8a4aeab 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -108,11 +108,11 @@ pub const fn identity<T>(x: T) -> T { /// If you need to do a costly conversion it is better to implement [`From`] with type /// `&T` or write a custom function. /// -/// `AsRef` has the same signature as [`Borrow`], but [`Borrow`] is different in few aspects: +/// `AsRef` has the same signature as [`Borrow`], but [`Borrow`] is different in a few aspects: /// /// - Unlike `AsRef`, [`Borrow`] has a blanket impl for any `T`, and can be used to accept either /// a reference or a value. -/// - [`Borrow`] also requires that [`Hash`], [`Eq`] and [`Ord`] for borrowed value are +/// - [`Borrow`] also requires that [`Hash`], [`Eq`] and [`Ord`] for a borrowed value are /// equivalent to those of the owned value. For this reason, if you want to /// borrow only a single field of a struct you can implement `AsRef`, but not [`Borrow`]. /// |
