Skip to content

rewrite if chains with match in exercise examples#1014

Merged
coriolinus merged 1 commit intomasterfrom
if-chain-match
Nov 18, 2020
Merged

rewrite if chains with match in exercise examples#1014
coriolinus merged 1 commit intomasterfrom
if-chain-match

Conversation

@coriolinus
Copy link
Copy Markdown
Member

Helps address #1012.

Some(Classification::Deficient)
} else {
Some(Classification::Abundant)
match sum.cmp(&num) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I notice that putting this whole thing in a Some is possible, but right now we are just rewriting ifs, not doing that.

@coriolinus coriolinus merged commit 76508e3 into master Nov 18, 2020
@coriolinus coriolinus deleted the if-chain-match branch November 18, 2020 10:59
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