From af4622ff3dbe2033a5d6e4f1ff68f119af2c18b6 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Sun, 4 Aug 2019 11:01:13 -0700 Subject: [PATCH] Fixes description of Closure lifetime in comments. --- examples/closures/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/closures/src/lib.rs b/examples/closures/src/lib.rs index aeabaf14..58c8609f 100644 --- a/examples/closures/src/lib.rs +++ b/examples/closures/src/lib.rs @@ -74,7 +74,7 @@ fn setup_clock(window: &Window, document: &Document) -> Result<(), JsValue> { // The instances of `Closure` that we created will invalidate their // corresponding JS callback whenever they're dropped, so if we were to - // normally return from `run` then both of our registered closures will + // normally return from `setup_clock` then both of our registered closures will // raise exceptions when invoked. // // Normally we'd store these handles to later get dropped at an appropriate