Skip to content

Tuple indexing syntax is missing from the rust book #23962

Closed
@andreabedini

Description

@andreabedini

It seems tuple indexing syntax is not introduced anywhere in the current documentation.

It shows up briefly here http://doc.rust-lang.org/nightly/reference.html#tuple-types as

assert!(p.0 == 10);

but nowhere else.

I think it should be introduced both there and here http://doc.rust-lang.org/nightly/book/compound-data-types.html#tuples

I'd help with some text but but there's nothing I hate more than writing :)

ping @steveklabnik

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