fix: document docs typo (#553)

This commit is contained in:
Chrislearn Young 2023-02-20 20:08:51 +08:00 committed by GitHub
parent 4ff08f042b
commit 4032bfc210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -760,7 +760,7 @@ pub fn window() -> web_sys::Window {
/// Returns the [`Document`](https://developer.mozilla.org/en-US/docs/Web/API/Document). /// Returns the [`Document`](https://developer.mozilla.org/en-US/docs/Web/API/Document).
/// ///
/// This is cached as a thread-local variable, so calling `window()` multiple times /// This is cached as a thread-local variable, so calling `document()` multiple times
/// requires only one call out to JavaScript. /// requires only one call out to JavaScript.
pub fn document() -> web_sys::Document { pub fn document() -> web_sys::Document {
DOCUMENT.with(|document| document.clone()) DOCUMENT.with(|document| document.clone())