Skip to content

Include definition of tuples for destructuring. #5773

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from
Closed

Include definition of tuples for destructuring. #5773

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 7, 2013

Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132.

Updates the tutorial to include a simple definition for tuples in
section 4.2. Fixes #5132.
@thestinger
Copy link
Contributor

Perhaps the destructuring example here should use a struct instead of a tuple.

@ghost
Copy link
Author

ghost commented Apr 8, 2013

@thestinger I considered that but in both cases we will have to explain what each is. The benefit of using a tuple in this case is that it is easier to explain since we don't have to worry about named fields.

@bstrie
Copy link
Contributor

bstrie commented Apr 9, 2013

Instead of just saying "explained later", can you add a link to the section where they're defined?

@ghost
Copy link
Author

ghost commented Apr 10, 2013

@bstrie Done though it is a little fickle since section numbering is done via CSS for the docs on the site.

bors added a commit that referenced this pull request Apr 10, 2013
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132.
@bors bors closed this Apr 10, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2020
Add a lint for `.repeat(1)`

changelog: New lint `repeat_once`

fix rust-lang#3028.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants