Skip to content

Commit 479c82a

Browse files
authored
Merge pull request #1230 from funkill/fix_chapter_name
Rename "Read Lines" chapter title
2 parents 33fae6f + 458609f commit 479c82a

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)