@@ -28,7 +28,7 @@ particular bits of it, etc.
28
28
# Example
29
29
30
30
```rust
31
- # #[allow(unused_must_use)];
31
+ # #! [allow(unused_must_use)]
32
32
use std::io::{File, fs};
33
33
34
34
let path = Path::new("foo.txt");
@@ -162,7 +162,7 @@ impl File {
162
162
/// # Example
163
163
///
164
164
/// ```rust
165
- /// # #[allow(unused_must_use)];
165
+ /// # #! [allow(unused_must_use)]
166
166
/// use std::io::File;
167
167
///
168
168
/// let mut f = File::create(&Path::new("foo.txt"));
@@ -220,7 +220,7 @@ impl File {
220
220
/// # Example
221
221
///
222
222
/// ```rust
223
- /// # #[allow(unused_must_use)];
223
+ /// # #! [allow(unused_must_use)]
224
224
/// use std::io::fs;
225
225
///
226
226
/// let p = Path::new("/some/file/path.txt");
@@ -290,7 +290,7 @@ pub fn lstat(path: &Path) -> IoResult<FileStat> {
290
290
/// # Example
291
291
///
292
292
/// ```rust
293
- /// # #[allow(unused_must_use)];
293
+ /// # #! [allow(unused_must_use)]
294
294
/// use std::io::fs;
295
295
///
296
296
/// fs::rename(&Path::new("foo"), &Path::new("bar"));
@@ -314,7 +314,7 @@ pub fn rename(from: &Path, to: &Path) -> IoResult<()> {
314
314
/// # Example
315
315
///
316
316
/// ```rust
317
- /// # #[allow(unused_must_use)];
317
+ /// # #! [allow(unused_must_use)]
318
318
/// use std::io::fs;
319
319
///
320
320
/// fs::copy(&Path::new("foo.txt"), &Path::new("bar.txt"));
@@ -364,7 +364,7 @@ pub fn copy(from: &Path, to: &Path) -> IoResult<()> {
364
364
/// # Example
365
365
///
366
366
/// ```rust
367
- /// # #[allow(unused_must_use)];
367
+ /// # #! [allow(unused_must_use)]
368
368
/// use std::io;
369
369
/// use std::io::fs;
370
370
///
@@ -416,7 +416,7 @@ pub fn readlink(path: &Path) -> IoResult<Path> {
416
416
/// # Example
417
417
///
418
418
/// ```rust
419
- /// # #[allow(unused_must_use)];
419
+ /// # #! [allow(unused_must_use)]
420
420
/// use std::io;
421
421
/// use std::io::fs;
422
422
///
@@ -437,7 +437,7 @@ pub fn mkdir(path: &Path, mode: FilePermission) -> IoResult<()> {
437
437
/// # Example
438
438
///
439
439
/// ```rust
440
- /// # #[allow(unused_must_use)];
440
+ /// # #! [allow(unused_must_use)]
441
441
/// use std::io::fs;
442
442
///
443
443
/// let p = Path::new("/some/dir");
0 commit comments