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

Improve grammar in example of 'in let' section #1308

Merged
merged 2 commits into from
Feb 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flow_control/if_let.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Another benefit is that `if let` allows us to match non-parameterized enum varia
Would you like a challenge? Fix the following example to use `if let`:

```rust,editable,ignore,mdbook-runnable
// This enum purposely doesn't #[derive(PartialEq)],
// neither we implement PartialEq for it. That's why comparing Foo::Bar==a fails below.
// This enum purposely neither implements nor derives PartialEq).
yawpitch marked this conversation as resolved.
Show resolved Hide resolved
// That is why comparing Foo::Bar == a fails below.
enum Foo {Bar}

fn main() {
Expand Down