mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Fixes description of Closure lifetime in comments.
This commit is contained in:
parent
732b691bb8
commit
af4622ff3d
@ -74,7 +74,7 @@ fn setup_clock(window: &Window, document: &Document) -> Result<(), JsValue> {
|
|||||||
|
|
||||||
// The instances of `Closure` that we created will invalidate their
|
// The instances of `Closure` that we created will invalidate their
|
||||||
// corresponding JS callback whenever they're dropped, so if we were to
|
// 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.
|
// raise exceptions when invoked.
|
||||||
//
|
//
|
||||||
// Normally we'd store these handles to later get dropped at an appropriate
|
// Normally we'd store these handles to later get dropped at an appropriate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user