diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-10-13 13:09:53 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-10-13 13:09:53 -0400 |
| commit | 53bec74bc5380fa34ec0fc49ef54f37d07e27388 (patch) | |
| tree | c1fc48d190ddf9f6a3ae6cddc15ed18232eb62f7 /src | |
| parent | 7868fbd824272f48311f64038a5f7bd4904922e8 (diff) | |
| parent | 6406dcb2c4c37cfbd867cc7a6684a6ef943424cf (diff) | |
| download | rust-53bec74bc5380fa34ec0fc49ef54f37d07e27388.tar.gz rust-53bec74bc5380fa34ec0fc49ef54f37d07e27388.zip | |
Rollup merge of #29007 - dnwade:patch-2, r=alexcrichton
r? @steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/iterators.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/iterators.md b/src/doc/trpl/iterators.md index 6cd0d9f8352..b8bac76af0c 100644 --- a/src/doc/trpl/iterators.md +++ b/src/doc/trpl/iterators.md @@ -44,7 +44,7 @@ own iterator involves implementing the `Iterator` trait. While doing that is outside of the scope of this guide, Rust provides a number of useful iterators to accomplish various tasks. But first, a few notes about limitations of ranges. -Ranges are very primitive, and we often can use better alternatives. Consider +Ranges are very primitive, and we often can use better alternatives. Consider the following Rust anti-pattern: using ranges to emulate a C-style `for` loop. Let’s suppose you needed to iterate over the contents of a vector. You may be tempted to write this: |
