Rollup merge of #76221 - camelid:cleanup-iter-for, r=jyn514

Clean up header in `iter` docs for `for` loops

@rustbot modify labels: T-doc
This commit is contained in:
Tyler Mandry 2020-09-01 18:24:48 -07:00 committed by GitHub
commit 4dd75f8049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@
//! methods like `nth` and `fold` if an iterator can compute them more efficiently without calling
//! `next`.
//!
//! # for Loops and IntoIterator
//! # `for` loops and `IntoIterator`
//!
//! Rust's `for` loop syntax is actually sugar for iterators. Here's a basic
//! example of `for`: