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

More TRPl editing #24571

Merged
merged 13 commits into from
Apr 21, 2015
Merged

More TRPl editing #24571

merged 13 commits into from
Apr 21, 2015

Conversation

steveklabnik
Copy link
Member

A bunch of chapters, fixes an issue or two as well.

r? @alexcrichton

the branch is of the form `val => expression`. When the value matches, that arm’s
expression will be evaluated. It’s called `match` because of the term ‘pattern
matching’, which `match` is an implementation of. There’s an [entire section on
patterns][patterns] coming up next, that covers all the options that fit here.
patterns][patterns] hat covers all the patterns that are possible here.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/hat/that/

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks

Now that we're not doing the guessing game, a lot of this is irrelevant.
We want to talk about how to pattern match on structs, so let's bump
it back one.
It's a trait implementation, so we need traits first.
It's a language feature, so it belongs here.
Let's talk about generics first, since we use traits to bound them
in funtions.

Partially addresses rust-lang#24325

Fixes rust-lang#24271
@alexcrichton
Copy link
Member

@bors: r+ 14af257 rollup

@steveklabnik
Copy link
Member Author

🎊

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 20, 2015
A bunch of chapters, fixes an issue or two as well.

r? @alexcrichton
bors added a commit that referenced this pull request Apr 20, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 21, 2015
A bunch of chapters, fixes an issue or two as well.

r? @alexcrichton
bors added a commit that referenced this pull request Apr 21, 2015
@bors bors merged commit 14af257 into rust-lang:master Apr 21, 2015
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.

5 participants