From 4fa9865cc95614ad7150c5b4bfcb19e511d32c57 Mon Sep 17 00:00:00 2001 From: Richard Dodd Date: Tue, 13 Nov 2018 14:36:33 +0000 Subject: [PATCH] Add manual docs for single manual function. --- crates/web-sys/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/web-sys/src/lib.rs b/crates/web-sys/src/lib.rs index 218673ee..201f8f61 100755 --- a/crates/web-sys/src/lib.rs +++ b/crates/web-sys/src/lib.rs @@ -20,6 +20,13 @@ extern crate wasm_bindgen; #[allow(unused_imports)] use js_sys::Object; +/// Getter for the `Window` object +/// +/// [MDN Documentation] +/// +/// *This API requires the following crate features to be activated: `Window`* +/// +/// [MDN Documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Window #[cfg(feature = "Window")] pub fn window() -> Option { use wasm_bindgen::JsCast;