mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-29 02:03:29 +00:00
Merge pull request #2440 from douglashill/patch-1
Fix minor typo in comment in options 3 solution
This commit is contained in:
@@ -15,7 +15,7 @@ fn main() {
|
|||||||
_ => panic!("No match!"),
|
_ => panic!("No match!"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Solution 2: Matching over a reference (`&Option`) by added `&` before
|
// Solution 2: Matching over a reference (`&Option`) by adding `&` before
|
||||||
// `optional_point`.
|
// `optional_point`.
|
||||||
match &optional_point {
|
match &optional_point {
|
||||||
//^ added
|
//^ added
|
||||||
|
|||||||
Reference in New Issue
Block a user