From 36363c9d60d811c98785455a6c525b1c9446b68c Mon Sep 17 00:00:00 2001 From: "Spencer C. Imbleau" Date: Mon, 15 Apr 2024 16:28:03 -0400 Subject: [PATCH] fix(docs): function typos --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a20d0b..4fbb638 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ There is also a web demo [available here](https://loopystudios.github.io/replace ```rust #[cfg(target_arch = "wasm32")] fn main() { - replace_html::replace_by_id("body", "Your platform is not supported!").unwrap(); + replace_html::replace_body("Your platform is not supported!").unwrap(); } #[cfg(not(target_arch = "wasm32"))] fn main() { diff --git a/src/lib.rs b/src/lib.rs index d2097c8..1bca53f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ //! ```rust //! #[cfg(target_arch = "wasm32")] //! fn main() { -//! replace_html::replace_by_id("body", "Your platform is not supported!").unwrap(); +//! replace_html::replace_body("Your platform is not supported!").unwrap(); //! } //! #[cfg(not(target_arch = "wasm32"))] //! fn main() {