Skip to content

Commit

Permalink
update ch11-01 fix #825
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiserY committed Nov 4, 2024
1 parent 0587716 commit c6fa937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch11-01-writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c6fa937

Please sign in to comment.