Skip to content

Commit

Permalink
Merge pull request #1307 from kornelski/into
Browse files Browse the repository at this point in the history
Don't suggest Into implements a reverse conversion
  • Loading branch information
marioidival committed Feb 18, 2020
2 parents bbb0a50 + 3e2bd2a commit f001441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversion/from_into.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fn main() {
## `Into`

The [`Into`] trait is simply the reciprocal of the `From` trait. That is, if you
have implemented the `From` trait for your type you get the `Into`
implementation for free.
have implemented the `From` trait for your type, `Into` will call it when
necessary.

Using the `Into` trait will typically require specification of the type to
convert into as the compiler is unable to determine this most of the time.
Expand Down

0 comments on commit f001441

Please sign in to comment.