mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-05 19:28:04 +08:00
修复11-5示例代码未显示的问题
ch11-01-writing-tests.md
This commit is contained in:
parent
50e2d89607
commit
6e18ec576c
@ -107,7 +107,7 @@ Cargo 编译并运行了测试。可以看到 `running 1 test` 这一行。下
|
||||
<span class="filename">文件名:src/lib.rs</span>
|
||||
|
||||
```rust,noplayground
|
||||
{{#rustdoc_include ../listings/ch11-writing-automated-tests/listing-11-05/src/lib.rs:here}}
|
||||
{{#rustdoc_include ../listings/ch11-writing-automated-tests/listing-11-05/src/lib.rs}}
|
||||
```
|
||||
|
||||
<span class="caption">示例 11-5:第五章中 `Rectangle` 结构体和其 `can_hold` 方法</span>
|
||||
|
Loading…
Reference in New Issue
Block a user