update ch11-01 fix #825

This commit is contained in:
KaiserY 2024-11-04 16:29:05 +08:00
parent 0587716e3d
commit c6fa93772a

View File

@ -79,7 +79,7 @@ Cargo 编译并运行了测试。可以看到 `running 1 test` 这一行。下
<span class="filename">文件名src/lib.rs</span>
```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}}
```
<span class="caption">示例 11-3增加第二个因调用了 `panic!` 而失败的测试</span>