Skip to content

Commit 3b349d8

Browse files
authored
from-and-into.md: mention losslessness and infallibility (#2281)
Fixes #2069.
1 parent 991bd8c commit 3b349d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/std-traits/from-and-into.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ minutes: 5
44

55
# `From` and `Into`
66

7-
Types implement [`From`][1] and [`Into`][2] to facilitate type conversions:
7+
Types implement [`From`][1] and [`Into`][2] to facilitate type conversions.
8+
Unlike `as`, these traits correspond to lossless, infallible conversions.
89

910
```rust,editable
1011
fn main() {

0 commit comments

Comments
 (0)