We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 152b95a + 305c4f8 commit 4539dfcCopy full SHA for 4539dfc
src/flow_control/match/guard.md
@@ -32,13 +32,14 @@ fn main() {
32
}
33
```
34
35
+<!--
36
Note that the compiler won't take guard conditions into account when checking
37
if all patterns are covered by the match expression.
-possible conditions have been checked. Therefore, you must use the `_` pattern
38
-at the end.
+-->
39
+コンパイラは、match式ですべてのパターンがカバーされているかどうかを調べるときに、
40
+ガード条件を考慮しない点に注意してください。
41
42
```rust,editable,ignore,mdbook-runnable
-```rust,editable
43
fn main() {
44
let number: u8 = 4;
45
@@ -47,7 +48,7 @@ fn main() {
47
48
i if i > 0 => println!("Greater than zero"),
49
// _ => unreachable!("Should never happen."),
50
// TODO ^ uncomment to fix compilation
- _ => println!("Fell through"), // This should not be possible to reach
51
+ // TODO ^ アンコメントしてコンパイルを修正しよう
52
53
54
0 commit comments