Skip to content

str::get_mut doc example should demonstrate mutability #44382

Closed
@frewsxcv

Description

@frewsxcv

https://doc.rust-lang.org/nightly/std/primitive.str.html#method.get_mut

The doc example should demonstrate the effects of mutating the resulting string slice.

The easiest way I've found to demonstrate mutability with doc examples for str is to use AsciiExt: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions