未验证 提交 09d55292 编写于 作者: N Nicholas Baron 提交者: GitHub

Update src/libstd/keyword_docs.rs

Clear up wording regarding the iterator and usage of `break`.
Co-authored-by: NJosh Triplett <josh@joshtriplett.org>
上级 f268525d
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册