Skip to content

Commit

Permalink
fix: fix another translation omission in ch18-03-pattern-syntax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 authored Jul 12, 2024
1 parent 6fdfb49 commit 2543e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Rust 可以知道 `'c'` 有包含在第一個模式的範圍內,所以印出 `

<span class="caption">範例 18-19:忽略元組中數個位置</span>

此程式碼會印出 `一些數字2、8、32`,然後數值 4 與 16 會被忽略。
此程式碼會印出 `一些數字:2、8、32`,然後數值 4 與 16 會被忽略。

#### 在名稱前加上 `_` 來忽略未使用的變數

Expand Down

0 comments on commit 2543e49

Please sign in to comment.