We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18062c1 + 2a66814 commit c121cbaCopy full SHA for c121cba
src/doc/guide.md
@@ -4363,7 +4363,7 @@ element, `find` returns an `Option` rather than the element itself.
4363
Another important consumer is `fold`. Here's what it looks like:
4364
4365
```{rust}
4366
-let sum = range(1i, 100i)
+let sum = range(1i, 4i)
4367
.fold(0i, |sum, x| sum + x);
4368
```
4369
@@ -4387,7 +4387,7 @@ in this iterator:
4387
We called `fold()` with these arguments:
4388
4389
4390
-# range(1i, 5i)
+# range(1i, 4i)
4391
4392
4393
0 commit comments