From 7f2dc6fb61269246b41df73da7bf4719de183fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=BC=BA?= Date: Thu, 20 Jan 2022 02:22:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20demo=20=E4=BB=A3=E7=A0=81=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=BB=93=E6=9E=9C=E9=94=99=E8=AF=AF=EF=BC=8C=E4=B8=8E?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E4=B8=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: demo 代码运行结果错误,与实际不符 --- book/contents/basic/result-error/panic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/result-error/panic.md b/book/contents/basic/result-error/panic.md index ba599941..96ead30e 100644 --- a/book/contents/basic/result-error/panic.md +++ b/book/contents/basic/result-error/panic.md @@ -19,7 +19,7 @@ fn main() { 运行后输出: ```console -thread 'main' panicked at 'crash!!1', src/main.rs:3:5 +thread 'main' panicked at 'crash and burn', src/main.rs:2:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```