From 36fde75d779078118af3b2b6c078bcbfb47b1a0f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 17 May 2020 19:24:39 +0200 Subject: Miscellaneous documentation and spelling improvements (#5527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: 迷渡 Co-authored-by: AlfieriChou Co-authored-by: Anil Seervi Co-authored-by: Fernando Basso Co-authored-by: József Sallai Co-authored-by: S4ltyGo4t Co-authored-by: Tommy May Co-authored-by: Turbinya Co-authored-by: ᴜɴвʏтᴇ --- core/isolate.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/isolate.rs') 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 -- cgit v1.2.3