mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Don't ignore a doc code-block we can compile.
This commit is contained in:
parent
6ffdda1ba1
commit
5cab9525ae
@ -291,7 +291,7 @@ let result = f.write(buf);
|
||||
|
||||
We need to `use` the `Write` trait first:
|
||||
|
||||
```rust,ignore
|
||||
```rust,no_run
|
||||
use std::io::Write;
|
||||
|
||||
let mut f = std::fs::File::create("foo.txt").expect("Couldn’t create foo.txt");
|
||||
|
Loading…
Reference in New Issue
Block a user