Skip to content

Commit 2ad1bb6

Browse files
committed
auto merge of #17510 : MatejLach/rust/find_fix, r=steveklabnik
The `let one_to_one_hundred = range(0i, 100i);` is not needed here as it relates to the previous example and produces a warning here. r @steveklabnik ?
2 parents 5d653c1 + 3c47d89 commit 2ad1bb6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/doc/guide.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4324,8 +4324,6 @@ and so we tell it that we want a vector of integers.
43244324
is one:
43254325

43264326
```{rust}
4327-
let one_to_one_hundred = range(0i, 100i);
4328-
43294327
let greater_than_forty_two = range(0i, 100i)
43304328
.find(|x| *x >= 42);
43314329

0 commit comments

Comments
 (0)