Fixes description of Closure lifetime in comments.

This commit is contained in:
Benjamin Lee 2019-08-04 11:01:13 -07:00 committed by GitHub
parent 732b691bb8
commit af4622ff3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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