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.
1 parent d670919 commit 2a66814Copy full SHA for 2a66814
src/doc/guide.md
@@ -4365,7 +4365,7 @@ element, `find` returns an `Option` rather than the element itself.
4365
Another important consumer is `fold`. Here's what it looks like:
4366
4367
```{rust}
4368
-let sum = range(1i, 100i)
+let sum = range(1i, 4i)
4369
.fold(0i, |sum, x| sum + x);
4370
```
4371
@@ -4389,7 +4389,7 @@ in this iterator:
4389
We called `fold()` with these arguments:
4390
4391
4392
-# range(1i, 5i)
+# range(1i, 4i)
4393
4394
4395
0 commit comments