Skip to content

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

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".

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