Skip to content

Commit

Permalink
Fix typo in Closure example code (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmtm authored Jun 1, 2020
1 parent cc36bdc commit 1076065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/closures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn run() -> Result<(), JsValue> {
//
// Note the usage of `Closure` here because the closure is "long lived",
// basically meaning it has to persist beyond the call to this one function.
// Also of note here is the `.as_ref().unchecked_ref()` chain, which is who
// Also of note here is the `.as_ref().unchecked_ref()` chain, which is how
// you can extract `&Function`, what `web-sys` expects, from a `Closure`
// which only hands you `&JsValue` via `AsRef`.
fn setup_clock(window: &Window, document: &Document) -> Result<(), JsValue> {
Expand Down

0 comments on commit 1076065

Please sign in to comment.