From 4032bfc2106eb30ccec8418e1ec5051eb76171db Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Mon, 20 Feb 2023 20:08:51 +0800 Subject: [PATCH] fix: document docs typo (#553) --- leptos_dom/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index 8655670ba..1b885a453 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -760,7 +760,7 @@ pub fn window() -> web_sys::Window { /// 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. pub fn document() -> web_sys::Document { DOCUMENT.with(|document| document.clone())