mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
fix typos
This commit is contained in:
@ -18,9 +18,8 @@
|
||||
- [结构体](compound-types/struct.md)
|
||||
- [枚举](compound-types/enum.md)
|
||||
- [流程控制](flow-control.md)
|
||||
- [模式匹配 todo](pattern-match/intro.md)
|
||||
- [模式匹配](pattern-match/intro.md)
|
||||
- [match, matches! 和 if let](pattern-match/match-iflet.md)
|
||||
- [解构 Option](pattern-match/option.md)
|
||||
- [模式](pattern-match/patterns.md)
|
||||
- [方法 Method todo](method.md)
|
||||
- [泛型和特征 todo](generics-traits/intro.md)
|
||||
|
@ -166,11 +166,11 @@ fn main() {
|
||||
|
||||
// 移除以下代码,使用 `match` 代替
|
||||
if let Foo::Bar = a {
|
||||
println!("matches foo::bar")
|
||||
println!("match foo::bar")
|
||||
} else if let Foo::Baz = a {
|
||||
println!("matches foo::baz")
|
||||
println!("match foo::baz")
|
||||
} else {
|
||||
println!("matches others")
|
||||
println!("match others")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -1 +0,0 @@
|
||||
# Option destructing
|
Reference in New Issue
Block a user