From c6fa93772a6353881cbcf9fcd8c9f0f9cc0b6320 Mon Sep 17 00:00:00 2001 From: KaiserY Date: Mon, 4 Nov 2024 16:29:05 +0800 Subject: [PATCH] update ch11-01 fix #825 --- src/ch11-01-writing-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch11-01-writing-tests.md b/src/ch11-01-writing-tests.md index 0be8d98..67dc6ad 100644 --- a/src/ch11-01-writing-tests.md +++ b/src/ch11-01-writing-tests.md @@ -79,7 +79,7 @@ Cargo 编译并运行了测试。可以看到 `running 1 test` 这一行。下 文件名:src/lib.rs ```rust,panics,noplayground -{{#rustdoc_include ../listings/ch11-writing-automated-tests/listing-11-03/src/lib.rs:here}} +{{#rustdoc_include ../listings/ch11-writing-automated-tests/listing-11-03/src/lib.rs}} ``` 示例 11-3:增加第二个因调用了 `panic!` 而失败的测试