From 6edb871c36dc299d0818d91119ddab764b18c7f6 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 25 Sep 2018 11:21:27 -0700 Subject: [PATCH] js-sy: Add a doc comment for `js_sys::IntoIter` --- crates/js-sys/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index b633a192..598ceb16 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -1184,6 +1184,9 @@ pub struct Iter<'a> { state: IterState, } +/// An iterator over the JS `Symbol.iterator` iteration protocol. +/// +/// Use the `IntoIterator for js_sys::Iterator` implementation to create this. pub struct IntoIter { js: Iterator, state: IterState,