mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Rollup merge of #67280 - shalzz:patch-1, r=jonas-schievink
docs: std::convert::From: Fix typo Fix a minor typo
This commit is contained in:
commit
d0cc289ec0
@ -291,7 +291,7 @@ pub trait Into<T>: Sized {
|
||||
/// [`Into`].
|
||||
///
|
||||
/// One should always prefer implementing `From` over [`Into`]
|
||||
/// because implementing `From` automatically provides one with a implementation of [`Into`]
|
||||
/// because implementing `From` automatically provides one with an implementation of [`Into`]
|
||||
/// thanks to the blanket implementation in the standard library.
|
||||
///
|
||||
/// Only implement [`Into`] if a conversion to a type outside the current crate is required.
|
||||
|
Loading…
Reference in New Issue
Block a user