Improve translation grammar

pull/528/head
Sprite 4 years ago committed by GitHub
parent e25b3cacee
commit 16674d1686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -180,7 +180,7 @@ fn main() {
}
```
`expect``unwrap` 的使用方式一样:返回文件句柄或调用 `panic!` 宏。`expect` 用来调用 `panic!` 的错误信息将会作为参数传递给 `expect` ,而不像`unwrap` 那样使用默认的 `panic!` 信息。它看起来像这样:
`expect``unwrap` 的使用方式一样:返回文件句柄或调用 `panic!` 宏。`expect` 在调用 `panic!` 时使用的错误信息将是我们传递给 `expect` 的参数,而不像`unwrap` 那样使用默认的 `panic!` 信息。它看起来像这样:
```text
thread 'main' panicked at 'Failed to open hello.txt: Error { repr: Os { code:

Loading…
Cancel
Save