Skip to content

Commit

Permalink
Update lib.rs (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous authored Feb 23, 2021
1 parent 68fa193 commit b54c9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dom/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn run() -> Result<(), JsValue> {

// Manufacture the element we're gonna append
let val = document.create_element("p")?;
val.set_inner_html("Hello from Rust!");
val.set_text_content("Hello from Rust!");

body.append_child(&val)?;

Expand Down

0 comments on commit b54c9f4

Please sign in to comment.