Skip to content

Avoid using "into" when explaining to_* #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2020

Conversation

PrototypeNM1
Copy link
Contributor

The description "Conversions prefixed to_, on the other hand, typically stay at the same level of abstraction but do some work to change one representation into another." risks overlapping the ideas of to_ and into_ to memory. Instead using "from... to" helps reduce that overlap by using to with to_.

The description "Conversions prefixed `to_`, on the other hand, typically stay at the same level of abstraction but do some work to change one representation into another." risks overlapping the ideas of `to_` and `into_` to memory. Instead using "from... to" helps reduce that overlap by using to with `to_`.
Copy link
Contributor

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PrototypeNM1!

@KodrAus KodrAus merged commit 442b029 into rust-lang:master Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants