From 2b98e7129519004b14cf9a231c6d8fbcac579f35 Mon Sep 17 00:00:00 2001 From: Sprite Date: Sun, 15 Aug 2021 22:26:17 +0800 Subject: [PATCH] Fix a minor formatting mistake --- src/ch09-02-recoverable-errors-with-result.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index f91d028..2c28af4 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -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: