Merge pull request #31 from sureshggg/master

Update README.md
This commit is contained in:
Dhghomon 2020-07-26 16:58:17 +09:00 committed by GitHub
commit 83e2f5c9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2447,7 +2447,7 @@ fn main() {
} }
``` ```
`break counter;` means "break with the value of counter". And because the whole bloock starts with `let`, `my_number` gets the value. `break counter;` means "break with the value of counter". And because the whole block starts with `let`, `my_number` gets the value.
Now that we know how to use loops, here is a better solution to the `match` problem with colours. It is a better solution because we want to compare everything, and a `for` loop looks at every item. Now that we know how to use loops, here is a better solution to the `match` problem with colours. It is a better solution because we want to compare everything, and a `for` loop looks at every item.