Skip to content

Commit d144840

Browse files
committed
---
yaml --- r: 216198 b: refs/heads/stable c: 331821e h: refs/heads/master v: v3
1 parent 9916e68 commit d144840

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 7972fbb735ee49377e22096a1f7fc9c4bae0e289
32+
refs/heads/stable: 331821e3a0cceef5b3a3270a2af384460d0a0bdb
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/doc/reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,7 +3192,7 @@ for_expr : [ lifetime ':' ] "for" pat "in" no_struct_literal_expr '{' block '}'
31923192
```
31933193

31943194
A `for` expression is a syntactic construct for looping over elements provided
3195-
by an implementation of `std::iter::Iterator`.
3195+
by an implementation of `std::iter::IntoIterator`.
31963196

31973197
An example of a for loop over the contents of an array:
31983198

@@ -3205,8 +3205,8 @@ An example of a for loop over the contents of an array:
32053205
32063206
let v: &[Foo] = &[a, b, c];
32073207
3208-
for e in v.iter() {
3209-
bar(*e);
3208+
for e in v {
3209+
bar(e);
32103210
}
32113211
```
32123212

0 commit comments

Comments
 (0)