From ce4a7773ccb606c51c824881e37043bc937c94f2 Mon Sep 17 00:00:00 2001 From: findmyhappy <167661649+findmyhappy@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:59:56 +0800 Subject: [PATCH] docs: fix some typos in comments (#23520) --- cli/lsp/tsc.rs | 2 +- ext/net/tcp.rs | 2 +- ext/webgpu/01_webgpu.js | 2 +- tools/copyright_checker.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 06f618e1fb..28127c6d75 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3176,7 +3176,7 @@ fn get_parameters_from_parts(parts: &[SymbolDisplayPart]) -> Vec { break; } } else if part.text == "..." && paren_count == 1 { - // Found rest parmeter. Do not fill in any further arguments. + // Found rest parameter. Do not fill in any further arguments. break; } else if part.text == "{" { brace_count += 1; diff --git a/ext/net/tcp.rs b/ext/net/tcp.rs index 5836202433..63baa8e4be 100644 --- a/ext/net/tcp.rs +++ b/ext/net/tcp.rs @@ -7,7 +7,7 @@ use socket2::Domain; use socket2::Protocol; use socket2::Type; -/// Our per-process `Connections`. We can use this to find an existant listener for +/// Our per-process `Connections`. We can use this to find an existent listener for /// a given local address and clone its socket for us to listen on in our thread. static CONNS: std::sync::OnceLock> = std::sync::OnceLock::new(); diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index b8b13ebf80..d3e9bf4e38 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -193,7 +193,7 @@ function assertDeviceMatch( const resourceDevice = assertDevice(resource, prefix, resourceContext); if (resourceDevice.rid !== self.rid) { throw new DOMException( - `${prefix}: ${resourceContext} belongs to a diffent device than ${selfContext}.`, + `${prefix}: ${resourceContext} belongs to a different device than ${selfContext}.`, "OperationError", ); } diff --git a/tools/copyright_checker.js b/tools/copyright_checker.js index 86289b9d45..73c5e6a712 100644 --- a/tools/copyright_checker.js +++ b/tools/copyright_checker.js @@ -71,7 +71,7 @@ export async function checkCopyright() { !fileText.startsWith(C_STYLE_COPYRIGHT_LINE) ) { let trimmedText = fileText; - // Attempt to trim accceptable lines + // Attempt to trim acceptable lines while ( ACCEPTABLE_LINES.test(trimmedText) && !trimmedText.startsWith(C_STYLE_COPYRIGHT_LINE)