Skip to content

Commit c9d151f

Browse files
authored
Merge pull request #1929 from santoshxshrestha/patch-1
fix(docs): standardize on `no_run` attribute for documentation examples
2 parents c83a739 + a31d217 commit c9d151f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/std_misc/file/read_lines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This might be a reasonable first attempt for a beginner's first
66
implementation for reading lines from a file.
77

8-
```rust,norun
8+
```rust,no_run
99
use std::fs::read_to_string;
1010
1111
fn read_lines(filename: &str) -> Vec<String> {
@@ -23,7 +23,7 @@ Since the method `lines()` returns an iterator over the lines in the file,
2323
we can also perform a map inline and collect the results, yielding a more
2424
concise and fluent expression.
2525

26-
```rust,norun
26+
```rust,no_run
2727
use std::fs::read_to_string;
2828
2929
fn read_lines(filename: &str) -> Vec<String> {

0 commit comments

Comments
 (0)