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

to_owned documentation is wrong #39831

Closed
sebastianv89 opened this issue Feb 14, 2017 · 0 comments
Closed

to_owned documentation is wrong #39831

sebastianv89 opened this issue Feb 14, 2017 · 0 comments

Comments

@sebastianv89
Copy link

The documentation for the to_owned method (https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#examples) claims that &[1,2].to_owned() returns a Vec, while my compiler tells me that it is a [{integer}; 2] see playground.

frewsxcv added a commit to frewsxcv/rust that referenced this issue Feb 16, 2017
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

No branches or pull requests

2 participants