Skip to content

Documentation of collections::string::String and std::string::String is off. #27051

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

Closed
contradictioned opened this issue Jul 15, 2015 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@contradictioned
Copy link
Contributor

I noted that the documentation for collections::string::String and std::string::String is a little off. In the IRC channel was said that this could be a serialization bug, so I'm reporting this here now.

The differences are that in collections::string::String there are lifetime parameters specified which are not in std::string::String, e.g. this from https://doc.rust-lang.org/collections/string/struct.String.html

fn from_utf8_lossy<'a>(v: &'a [u8]) -> Cow<'a, str>

vs. this from https://doc.rust-lang.org/std/string/struct.String.html

fn from_utf8_lossy(v: &'a [u8]) -> Cow<'a, str>

Here's a diff: http://pastie.org/10293533 (based on a HTML to text conversion of the two doc pages)

@steveklabnik steveklabnik added A-docs T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed A-docs labels Jul 16, 2015
@alexcrichton
Copy link
Member

Closing as a dupe of #14462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants