diff --git a/en/src/basic-types/functions.md b/en/src/basic-types/functions.md index f4d2762..a9acba0 100644 --- a/en/src/basic-types/functions.md +++ b/en/src/basic-types/functions.md @@ -85,7 +85,7 @@ fn main() { // FILL in the blank let b = __; - let v = match b { + let _v = match b { true => 1, // Diverging functions can also be used in match expression to replace a value of any value false => { diff --git a/solutions/basic-types/functions.md b/solutions/basic-types/functions.md index f33e184..e01ddd3 100644 --- a/solutions/basic-types/functions.md +++ b/solutions/basic-types/functions.md @@ -108,7 +108,7 @@ fn main() { // FILL in the blank let b = false; - let v = match b { + let _v = match b { true => 1, // Diverging functions can also be used in match expression false => { diff --git a/zh-CN/src/basic-types/functions.md b/zh-CN/src/basic-types/functions.md index b5528e6..fe4272c 100644 --- a/zh-CN/src/basic-types/functions.md +++ b/zh-CN/src/basic-types/functions.md @@ -77,7 +77,7 @@ fn main() { // 填空 let b = __; - let v = match b { + let _v = match b { true => 1, // 发散函数也可以用于 `match` 表达式,用于替代任何类型的值 false => {