Skip to content

Commit

Permalink
誤字修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmili committed Jan 31, 2025
1 parent b92e832 commit 28347a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch03-05-control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ condition, and once it finds one, it doesn’t even check the rest.
-->

このプログラムを実行すると、`if`式が順番に吟味され、最初に条件が`true`に評価された本体が実行されます。
6は2で割り切れるものの、`number is devisible by 2`や、
6は2で割り切れるものの、`number is divisible by 2`や、
`else`ブロックの`number is not divisible by 4, 3, or 2`という出力はされないことに注目してください。
それは、Rustが最初の`true`な条件のブロックのみを実行し、
条件に合ったものが見つかったら、残りはチェックすらしないからです。
Expand Down

0 comments on commit 28347a2

Please sign in to comment.