We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#39836 - durka:patch-37, r=alexcrichton
46564d4
fix types in to_owned doctest Fixes rust-lang#39831.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: