Skip to content

Commit

Permalink
fix(docs): function typos
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Apr 15, 2024
1 parent 549cb2e commit 36363c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 36363c9

Please sign in to comment.