summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-05-17 19:24:39 +0200
committerGitHub <noreply@github.com>2020-05-17 19:24:39 +0200
commit36fde75d779078118af3b2b6c078bcbfb47b1a0f (patch)
treec3cef9095b5c4ef762edc535be28d4e112928db4 /core
parenteddb916883901385233bea24313e2920fcac5388 (diff)
Miscellaneous documentation and spelling improvements (#5527)
* Extended/updated documentation on code editor setup and plugins. * Moved documentation to the right file. * Fixed spelling errors in documentation and code. * Updated broken links. Co-authored-by: 迷渡 <justjavac@gmail.com> Co-authored-by: AlfieriChou <alfierichou@gmail.com> Co-authored-by: Anil Seervi <anil13112000@gmail.com Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com> Co-authored-by: József Sallai <jozsef@sallai.me> Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de> Co-authored-by: Tommy May <tommymay37@gmail.com> Co-authored-by: Turbinya <wownucleos@gmail.com> Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
Diffstat (limited to 'core')
-rw-r--r--core/isolate.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/isolate.rs b/core/isolate.rs
index d017687c6..13892c2d9 100644
--- a/core/isolate.rs
+++ b/core/isolate.rs
@@ -128,9 +128,8 @@ pub enum Snapshot {
Boxed(Box<[u8]>),
}
-/// Represents data used to initialize isolate at startup
-/// either a binary snapshot or a javascript source file
-/// in the form of the StartupScript struct.
+/// Represents data used to initialize an isolate at startup, either
+/// in the form of a binary snapshot or a JavaScript source file.
pub enum StartupData<'a> {
Script(Script<'a>),
Snapshot(Snapshot),
@@ -142,7 +141,7 @@ type IsolateErrorHandleFn = dyn FnMut(ErrBox) -> Result<(), ErrBox>;
/// A single execution context of JavaScript. Corresponds roughly to the "Web
/// Worker" concept in the DOM. An CoreIsolate is a Future that can be used with
-/// Tokio. The CoreIsolate future complete when there is an error or when all
+/// Tokio. The CoreIsolate future completes when there is an error or when all
/// pending ops have completed.
///
/// Ops are created in JavaScript by calling Deno.core.dispatch(), and in Rust