mirror of
https://github.com/rust-unofficial/patterns
synced 2024-11-14 18:12:46 +00:00
Merge pull request #63 from dubek/patch-1
idioms/option-iter: Fix typo in `extend` example
This commit is contained in:
commit
ea7e6e7bb8
@ -16,7 +16,7 @@ logicians.extend(turing);
|
||||
|
||||
// equivalent to
|
||||
if let Some(turing_inner) = turing {
|
||||
bar.push(turing_inner);
|
||||
logicians.push(turing_inner);
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user