Skip to content

Typo for array indexing trait in Expressions chapter #154

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

Activity

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

      Issue actions