From dc22965e7130ca0626dbe93cd4ca7e0d450a14c8 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 25 Sep 2018 11:20:09 -0700 Subject: [PATCH] js-sys: Add doc comment for `js_sys::Iter` --- 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 0dd9c5be..b633a192 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -1176,6 +1176,9 @@ extern { pub fn next(this: &Iterator) -> Result; } +/// An iterator over the JS `Symbol.iterator` iteration protocol. +/// +/// Use the `IntoIterator for &js_sys::Iterator` implementation to create this. pub struct Iter<'a> { js: &'a Iterator, state: IterState,