Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Clarify slice patterns example #223

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Conversation

tiziano88
Copy link
Contributor

The previous phrasing was not precise enough, and suggested that the [first, second] pattern would match any slice with at least two elements, while in fact it only matches slices with exactly two elements.

The previous phrasing was not precise enough, and suggested that the `[first, second]` pattern would match any slice with at least two elements, while in fact it only matches slices with exactly two elements.
Copy link
Member

@steveklabnik steveklabnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@steveklabnik steveklabnik merged commit b91a9a8 into rust-lang:master Nov 2, 2020
@tiziano88 tiziano88 deleted the patch-1 branch November 2, 2020 17:10
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 12, 2020
Update books

## nomicon

8 commits in 69333eddb1de92fd17e272ce4677cc983d3bd71d..23c49f1d5ce4720bc5b7e3a920f47eccc8da6b63
2020-10-17 15:44:12 -0700 to 2020-11-05 13:30:53 +0900
-  (rust-lang/nomicon#238)
- Some tweaks (rust-lang/nomicon#244)
-  (rust-lang/nomicon#245)
- Update atomics.md (rust-lang/nomicon#224)
- Update send-and-sync.md (rust-lang/nomicon#187)
- fix a typo (rust-lang/nomicon#231)
- Improve formatting of "Transmutes" chapter (rust-lang/nomicon#242)
- Merge pull request rust-lang/nomicon#241 from simon-lammes/patch-1

## reference

4 commits in 10c16caebe475d0d11bec0531b95d7697856c13c..a7de763c213292f5b44bf10acb87ffa38724814d
2020-10-25 20:51:26 -0700 to 2020-11-11 19:13:21 -0800
- Referencify tuples (rust-lang/reference#899)
- Mention Box's partial field moves (rust-lang/reference#837)
- Enable triagebot (rust-lang/reference#862)
- Update deprecated GitHub Actions commands. (rust-lang/reference#896)

## rust-by-example

1 commits in 99eafee0cb14e6ec641bf02a69d7b30f6058349a..1886fda6981b723e4de637074455558f8bc1e83c
2020-10-21 14:21:55 -0300 to 2020-10-28 13:46:54 -0500
- Remove incorrect "lambda" terminology

## edition-guide

1 commits in 7bc9b7a5e800f79df62947cb7d566fd2fbaf19fe..b91a9a881ee007c12e74e844460ec407cf07a50f
2020-10-23 18:31:23 -0500 to 2020-11-02 11:02:03 -0600
- Clarify slice patterns example (rust-lang/edition-guide#223)
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 12, 2020
Update books

## nomicon

8 commits in 69333eddb1de92fd17e272ce4677cc983d3bd71d..23c49f1d5ce4720bc5b7e3a920f47eccc8da6b63
2020-10-17 15:44:12 -0700 to 2020-11-05 13:30:53 +0900
-  (rust-lang/nomicon#238)
- Some tweaks (rust-lang/nomicon#244)
-  (rust-lang/nomicon#245)
- Update atomics.md (rust-lang/nomicon#224)
- Update send-and-sync.md (rust-lang/nomicon#187)
- fix a typo (rust-lang/nomicon#231)
- Improve formatting of "Transmutes" chapter (rust-lang/nomicon#242)
- Merge pull request rust-lang/nomicon#241 from simon-lammes/patch-1

## reference

4 commits in 10c16caebe475d0d11bec0531b95d7697856c13c..a7de763c213292f5b44bf10acb87ffa38724814d
2020-10-25 20:51:26 -0700 to 2020-11-11 19:13:21 -0800
- Referencify tuples (rust-lang/reference#899)
- Mention Box's partial field moves (rust-lang/reference#837)
- Enable triagebot (rust-lang/reference#862)
- Update deprecated GitHub Actions commands. (rust-lang/reference#896)

## rust-by-example

1 commits in 99eafee0cb14e6ec641bf02a69d7b30f6058349a..1886fda6981b723e4de637074455558f8bc1e83c
2020-10-21 14:21:55 -0300 to 2020-10-28 13:46:54 -0500
- Remove incorrect "lambda" terminology

## edition-guide

1 commits in 7bc9b7a5e800f79df62947cb7d566fd2fbaf19fe..b91a9a881ee007c12e74e844460ec407cf07a50f
2020-10-23 18:31:23 -0500 to 2020-11-02 11:02:03 -0600
- Clarify slice patterns example (rust-lang/edition-guide#223)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants