Skip to content

Typo for array indexing trait in Expressions chapter #154

@b-jonas0

Description

@b-jonas0

There's a typo in the second edition Rust Book, page Expressions, section Mutability, see "https://doc.rust-lang.org/nightly/reference/expressions.html#mutability". It currently says an expression that's an "Array indexing of a type that implements DerefMut" can give an lvalue, but in that, DerefMut is a mistake for another trait, std::ops::IndexMut.

The source code for that book page appears to be "src/expressions.md" in this repo. The following patch should fix this problem: doc-indexmut-2017-11-07-v0.diff.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions