Skip to content

Confusing term for loop labels in reference doc #17716

Closed
@jgallagher

Description

@jgallagher

The grammar in the reference for loop (http://doc.rust-lang.org/reference.html#infinite-loops) uses the word "lifetime" to describe the label, but given that "lifetime" is term that means something very different, it's a little confusing.

Additionally, judging by https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L2162-L2176, for loops and while loops also support labels, but that isn't mentioned for them.

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