Skip to content
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

Rename to_vec to into_vec #5

Merged
merged 2 commits into from
Jun 28, 2017
Merged

Rename to_vec to into_vec #5

merged 2 commits into from
Jun 28, 2017

Conversation

eira-fransham
Copy link

to_* in Rust is usually reserved for functions that convert a reference of one type to an owned value of another type (for example, <&[T]>::to_vec, ToOwned::to_owned). Functions that convert an owned value of one type to an owned value of another type usually use into_*. This PR reflects that.

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