fix counting lines example

This commit is contained in:
Aleksey Kladov 2019-08-20 11:18:11 +03:00
parent 0156dc879b
commit 04cafeab2c

View file

@ -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;
/// }