Update src/libstd/keyword_docs.rs

Clear up wording regarding the iterator and usage of `break`.

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Nicholas Baron 2020-07-19 17:01:36 -07:00 committed by GitHub
parent f268525d96
commit 09d55292ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,7 +474,7 @@ mod fn_keyword {}
///
/// for-in-loops, or to be more precise, iterator loops, are a simple syntactic sugar over a common
/// practice within Rust, which is to loop over anything that implements [`IntoIterator`] until the
/// temporary iterator returns `None` (or `break` is called).
/// iterator returned by `.into_iter()` returns `None` (or the loop body uses `break`).
///
/// ```rust
/// for i in 0..5 {