Skip to content

Commit 7328e01

Browse files
author
Jakub Bukaj
committed
---
yaml --- r: 157581 b: refs/heads/snap-stage3 c: cca84e9 h: refs/heads/master i: 157579: e3a3934 v: v3
1 parent c55a7af commit 7328e01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1037
-1360
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 065caf34f5ff29e04605f95d9c5d511af219439a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 98bbccf2c7ea06e22ea8654a796121b9969a1760
4+
refs/heads/snap-stage3: cca84e9e21b3f021fb6a0d9dedaad270753531cc
55
refs/heads/try: 0ee4d8b0b112c608646fa75463ab4dc59132efd9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/doc/guide.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4545,10 +4545,9 @@ range(1i, 100i).map(|x| println!("{}", x));
45454545
If you are trying to execute a closure on an iterator for its side effects,
45464546
just use `for` instead.
45474547

4548-
There are tons of interesting iterator adapters. `take(n)` will return an
4549-
iterator over the next `n` elements of the original iterator, note that this
4550-
has no side effect on the original iterator. Let's try it out with our infinite
4551-
iterator from before, `count()`:
4548+
There are tons of interesting iterator adapters. `take(n)` will get the
4549+
first `n` items out of an iterator, and return them as a list. Let's
4550+
try it out with our infinite iterator from before, `count()`:
45524551

45534552
```{rust}
45544553
for i in std::iter::count(1i, 5i).take(5) {

0 commit comments

Comments
 (0)