mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:24:32 -06:00
Make code formatting consistent
This commit is contained in:
@@ -271,9 +271,9 @@ let sum: u32 = Counter::new().take(5)
|
|||||||
assert_eq!(18, sum);
|
assert_eq!(18, sum);
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that zip() produces only four pairs; the theoretical fifth pair (5, None)
|
Note that `zip` produces only four pairs; the theoretical fifth pair `(5,
|
||||||
is never produced because zip() returns None when either of its input iterators
|
None)` is never produced because `zip` returns `None` when either of its input
|
||||||
return None.
|
iterators return `None`.
|
||||||
|
|
||||||
All of these method calls are possible because we implemented the `Iterator`
|
All of these method calls are possible because we implemented the `Iterator`
|
||||||
trait by specifying how the `next` method works. Use the standard library
|
trait by specifying how the `next` method works. Use the standard library
|
||||||
|
|||||||
Reference in New Issue
Block a user