We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bde43af commit 9079c89Copy full SHA for 9079c89
src/std_misc/file/read_lines.md
@@ -41,7 +41,7 @@ and `String::from` respectively.
41
42
## A more efficient approach
43
44
-Here we use the `BufRead` class to read the file. `BufRead` uses an internal
+Here we pass ownership of the open `File` to a `BufReader` struct. `BufReader` uses an internal
45
buffer to reduce intermediate allocations.
46
47
We also update `read_lines` to return an iterator instead of allocating new
0 commit comments