Skip to content

Commit 51b4c51

Browse files
committed
remove rendundant function
Fixes #17230.
1 parent b458538 commit 51b4c51

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/doc/guide.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1308,10 +1308,9 @@ valid for the loop body. Once the body is over, the next value is fetched from
13081308
the iterator, and we loop another time. When there are no more values, the
13091309
`for` loop is over.
13101310

1311-
In our example, the `range` function is a function, provided by Rust, that
1312-
takes a start and an end position, and gives an iterator over those values. The
1313-
upper bound is exclusive, though, so our loop will print `0` through `9`, not
1314-
`10`.
1311+
In our example, `range` is a function that takes a start and an end position,
1312+
and gives an iterator over those values. The upper bound is exclusive, though,
1313+
so our loop will print `0` through `9`, not `10`.
13151314

13161315
Rust does not have the "C style" `for` loop on purpose. Manually controlling
13171316
each element of the loop is complicated and error prone, even for experienced C

0 commit comments

Comments
 (0)