Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4365,7 +4365,7 @@ element, `find` returns an `Option` rather than the element itself.
Another important consumer is `fold`. Here's what it looks like:

```{rust}
let sum = range(1i, 100i)
let sum = range(1i, 4i)
.fold(0i, |sum, x| sum + x);
```

Expand All @@ -4389,7 +4389,7 @@ in this iterator:
We called `fold()` with these arguments:

```{rust}
# range(1i, 5i)
# range(1i, 4i)
.fold(0i, |sum, x| sum + x);
```

Expand Down