Skip to content

Commit 458609f

Browse files
committed
change read lines chapter title
1 parent f444c75 commit 458609f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/std_misc/file/read_lines.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Read Lines
1+
# `read_lines`
22

33
The method `lines()` returns an iterator over the lines
4-
of a file.
4+
of a file.
55

66
`File::open` expects a generic, `AsRef<Path>`. That's what
77
`read_lines()` expects as input.
@@ -18,8 +18,8 @@ fn main() {
1818
for line in lines {
1919
if let Ok(ip) = line {
2020
println!("{}", ip);
21-
}
22-
}
21+
}
22+
}
2323
}
2424
}
2525

0 commit comments

Comments
 (0)