From 636f2bf30f0917c4830423f06ed6538e3c563d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=BC=BA?= Date: Thu, 20 Jan 2022 02:28:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E6=96=B9=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 下方文字描述 --- 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 96ead30e..79d7a997 100644 --- a/book/contents/basic/result-error/panic.md +++ b/book/contents/basic/result-error/panic.md @@ -24,7 +24,7 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` 以上信息包含了两条重要信息: -- `main` 函数所在的线程崩溃了,发生的代码位置是 `src/main.rs` 中的第3行第5个字符(去除该行前面的空字符) +- `main` 函数所在的线程崩溃了,发生的代码位置是 `src/main.rs` 中的第2行第5个字符(去除该行前面的空字符) - 在使用时加上一个环境变量可以获取更详细的栈展开信息:`RUST_BACKTRACE=1 cargo run` 下面让我们针对第二点进行详细展开讲解。