Skip to content

Guide: implies tuples have (only) two elements #17222

Closed
@bjpop

Description

@bjpop

In Section 9.1 Tuples, the Guide says:

"Even though Rust functions can only return one value, a tuple is one value, that happens to be made up of two. "

The example that this text follows does indeed use a 2-tuple, but other tuples could have more (or fewer?) elements than 2.

Perhaps it should read:

"Even though Rust functions can only return one value, a tuple is one value, that happens to contain multiple values. " (retaining your original emphasis on the word "is".

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