Skip to content

Unclear example on mutability #102

@mark-summerfield

Description

@mark-summerfield

In https://doc.rust-lang.org/book/mutability.html at the end of the Mutability section it has these examples:

let (mut x, y) = (5, 6);
fn foo(mut x: i32) {

I think there should be some following text, e.g.

Note that here, x is mutable, but y is not.

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