Skip to content

fix:typo swtich->switch #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions language/control-structures/switch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<programlisting role="php">
<![CDATA[
<?php
// これが swtich 文です:
// これが switch 文です:

switch ($i) {
case 0:
Expand Down Expand Up @@ -185,7 +185,7 @@ switch ($i) {
<para>
case に与える値は、式であっても構いません。
しかし、式はそれ自体が実行され、
その結果が swtich に与えた値と緩やかに比較されます。
その結果が switch に与えた値と緩やかに比較されます。
これは、switch に与える値の複雑な評価には使えないということです。
たとえば、以下の例を見てみましょう:
<informalexample>
Expand Down