Merge pull request #86 from matklad/count-lines-fixed

fix counting lines example
staging
James Munns 5 years ago committed by GitHub
commit bcb4910e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -149,7 +149,7 @@ pub trait BufRead {
/// let mut lines = BufReader::new(file).lines();
/// let mut count = 0;
///
/// for line in lines.next().await {
/// while let Some(line) = lines.next().await {
/// line?;
/// count += 1;
/// }

Loading…
Cancel
Save