summaryrefslogtreecommitdiff
path: root/docs/runtime/workers.md
diff options
context:
space:
mode:
authorMatt Dumler <mattd3v@pm.me>2020-05-18 14:53:25 -0500
committerGitHub <noreply@github.com>2020-05-18 15:53:25 -0400
commit88b24261ba467c20d4ef90224b07c19a71398f0f (patch)
tree0c5b47c766208877adc3a2afb16506c888d6e50b /docs/runtime/workers.md
parent76ee5c780848a922dfc0ab8ac48096ab2262cc4a (diff)
adjust docs (#5598)
Diffstat (limited to 'docs/runtime/workers.md')
-rw-r--r--docs/runtime/workers.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/runtime/workers.md b/docs/runtime/workers.md
index 3df712275..89541cee7 100644
--- a/docs/runtime/workers.md
+++ b/docs/runtime/workers.md
@@ -7,7 +7,7 @@ Workers can be used to run code on multiple threads. Each instance of `Worker`
is run on a separate thread, dedicated only to that worker.
Currently Deno supports only `module` type workers; thus it's essential to pass
-`type: "module"` option when creating new worker:
+`type: "module"` option when creating a new worker:
```ts
// Good
@@ -66,9 +66,9 @@ hello world
> This is an unstable Deno feature. Learn more about
> [unstable features](./stability.md).
-By default `Deno` namespace is not available in worker scope.
+By default the `Deno` namespace is not available in worker scope.
-To add `Deno` namespace pass `deno: true` option when creating new worker:
+To add the `Deno` namespace pass `deno: true` option when creating new worker:
```ts
// main.js
@@ -92,7 +92,7 @@ $ deno run --allow-read --unstable main.js
hello world
```
-When `Deno` namespace is available in worker scope; the worker inherits parent
-process permissions (the ones specified using `--allow-*` flags).
+When the `Deno` namespace is available in worker scope, the worker inherits its
+parent process' permissions (the ones specified using `--allow-*` flags).
We intend to make permissions configurable for workers.