Skip to content

Commit 2ced149

Browse files
committed
Auto merge of #30566 - salty-horse:doc_typo, r=apasel422
Small typo. vectors -> vector.
2 parents 0c7c94e + d6d949a commit 2ced149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/references-and-borrowing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ for i in &v {
263263
}
264264
```
265265

266-
This prints out one through three. As we iterate through the vectors, we’re
266+
This prints out one through three. As we iterate through the vector, we’re
267267
only given references to the elements. And `v` is itself borrowed as immutable,
268268
which means we can’t change it while we’re iterating:
269269

0 commit comments

Comments
 (0)