summaryrefslogtreecommitdiff
path: root/docs/runtime/program_lifecycle.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/runtime/program_lifecycle.md')
-rw-r--r--docs/runtime/program_lifecycle.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/runtime/program_lifecycle.md b/docs/runtime/program_lifecycle.md
index df8bbac65..4a94d6724 100644
--- a/docs/runtime/program_lifecycle.md
+++ b/docs/runtime/program_lifecycle.md
@@ -3,8 +3,8 @@
Deno supports browser compatible lifecycle events: `load` and `unload`. You can
use these events to provide setup and cleanup code in your program.
-Listener for `load` events can be asynchronous and will be awaited. Listener for
-`unload` events need to be synchronous. Both events cannot be cancelled.
+Listeners for `load` events can be asynchronous and will be awaited. Listeners
+for `unload` events need to be synchronous. Both events cannot be cancelled.
Example:
@@ -51,7 +51,7 @@ console.log("log from imported script");
Note that you can use both `window.addEventListener` and
`window.onload`/`window.onunload` to define handlers for events. There is a
-major difference between them, let's run example:
+major difference between them, let's run the example:
```shell
$ deno run main.ts