Skip to content

Commit b4d3c87

Browse files
committed
Tiny improvement to docs for core::convert.
This is not really significant, accept or reject as you wish. I just want to make sure I understand how the PR process works and I'm doing it right before doing a bigger one for #33417.
1 parent 20c2cba commit b4d3c87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcore/convert.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
//! [`TryFrom<T>`][`TryFrom`] rather than [`Into<U>`][`Into`] or [`TryInto<U>`][`TryInto`],
1818
//! as [`From`] and [`TryFrom`] provide greater flexibility and offer
1919
//! equivalent [`Into`] or [`TryInto`] implementations for free, thanks to a
20-
//! blanket implementation in the standard library.
20+
//! blanket implementation in the standard library. However, there are some cases
21+
//! where this is not possible, such as creating conversions into a type defined
22+
//! outside your library, so implementing [`Into`] instead of [`From`] is
23+
//! sometimes necessary.
2124
//!
2225
//! # Generic Implementations
2326
//!

0 commit comments

Comments
 (0)