Skip to content

Commit b7a2e97

Browse files
authored
Rollup merge of rust-lang#57926 - icefoxen:test-doc-pr, r=frewsxcv
Tiny expansion 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 that I'm doing it right before doing a bigger one for rust-lang#33417.
2 parents 26947dd + b4d3c87 commit b7a2e97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcore/convert.rs

Lines changed: 4 additions & 1 deletion
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)