Skip to content

Commit fb567a3

Browse files
committed
Recovered comments
1 parent 83afbab commit fb567a3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/option/from_stream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ where
2424
.take_while(|elem| {
2525
elem.is_some() || {
2626
found_none = true;
27+
// Stop processing the stream on `None`
2728
false
2829
}
2930
})

src/option/product.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ where
4848
.take_while(|elem| {
4949
elem.is_some() || {
5050
found_none = true;
51+
// Stop processing the stream on `None`
5152
false
5253
}
5354
})

src/option/sum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ where
4343
.take_while(|elem| {
4444
elem.is_some() || {
4545
found_none = true;
46+
// Stop processing the stream on error
4647
false
4748
}
4849
})

0 commit comments

Comments
 (0)