-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "Efficient method" and "Beginner friendly method" seem essentially the same here. #1677
Comments
@frittex14 Please take a look at this. It does not seem to have anything to do with efficiency. |
Hey, |
Oh, then it's the bottom line "This process is more efficient than creating a String in memory especially working with larger files." that made me confused. Thank you for your explanation. |
https://doc.rust-lang.org/rust-by-example/std_misc/file/read_lines.html
They are actually the same except that the "Efficient method" wraps the
Lines
object in aResult
...The text was updated successfully, but these errors were encountered: