summaryrefslogtreecommitdiff
path: root/core/isolate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/isolate.rs')
-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