Skip to content

documentation: str::split_at_mut() example wrong #32933

Closed
@bungcip

Description

@bungcip
Contributor

it seem example in https://doc.rust-lang.org/std/primitive.str.html#method.split_at_mut
is duplicate of str::split_at() example

Activity

GuillaumeGomez

GuillaumeGomez commented on Apr 13, 2016

@GuillaumeGomez
Member

Indeed. Want to fix it?

bungcip

bungcip commented on Apr 13, 2016

@bungcip
ContributorAuthor

Sure, but I will need to clone & learn how to build rust from source tough. I hope my notebook is not too slow to compile it :).

bluss

bluss commented on Apr 13, 2016

@bluss
Member

Go ahead and fix. But for this small thing I would probably not build rust locally at all. Make sure the code compiles in a simpler environment, and then let the test builders take care of it?

GuillaumeGomez

GuillaumeGomez commented on Apr 13, 2016

@GuillaumeGomez
Member

Just like @bluss said, no need to build anything. Just modify the comment in the rustc source code and open a PR.

added a commit that references this issue on Apr 14, 2016

Rollup merge of rust-lang#32941 - bungcip:fix-doc-1, r=alexcrichton

tbu-

tbu- commented on May 30, 2016

@tbu-
Contributor

Fixed by #32941.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bungcip@GuillaumeGomez@bluss@tbu-@apasel422

        Issue actions

          documentation: str::split_at_mut() example wrong · Issue #32933 · rust-lang/rust