mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: document docs typo (#553)
This commit is contained in:
parent
4ff08f042b
commit
4032bfc210
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue