diff options
author | youngwendy <166624921+youngwendy@users.noreply.github.com> | 2024-04-12 22:33:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 08:33:43 -0600 |
commit | 84e198f0d0285077c228a2ea41e927103ec4119f (patch) | |
tree | 3743787699b5686cc16eabf29c1bc59a6ba55ffd | |
parent | 650db71e35970af85a3f0a0ca89125088a372013 (diff) |
chore: remove repetitive words (#23341)
Signed-off-by: youngwendy <clonefetch@outlook.com>
-rw-r--r-- | cli/build.rs | 2 | ||||
-rw-r--r-- | cli/lsp/documents.rs | 2 | ||||
-rw-r--r-- | cli/tsc/dts/lib.dom.d.ts | 2 | ||||
-rw-r--r-- | cli/tsc/dts/lib.webworker.d.ts | 2 | ||||
-rw-r--r-- | cli/tsc/mod.rs | 2 | ||||
-rw-r--r-- | ext/node/polyfills/internal/util/inspect.mjs | 2 | ||||
-rw-r--r-- | ext/websocket/lib.deno_websocket.d.ts | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/cli/build.rs b/cli/build.rs index 482748d58..81bd4edda 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -289,7 +289,7 @@ mod ts { // NOTE(bartlomieju): Compressing the TSC snapshot in debug build took // ~45s on M1 MacBook Pro; without compression it took ~1s. - // Thus we're not not using compressed snapshot, trading off + // Thus we're not using compressed snapshot, trading off // a lot of build time for some startup time in debug build. let mut file = std::fs::File::create(snapshot_path).unwrap(); if cfg!(debug_assertions) { diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index f342129b5..9ca2db316 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -304,7 +304,7 @@ impl Document { resolver: &dyn deno_graph::source::Resolver, npm_resolver: &dyn deno_graph::source::NpmResolver, ) -> Arc<Self> { - // we only ever do `Document::new` on on disk resources that are supposed to + // we only ever do `Document::new` on disk resources that are supposed to // be diagnosable, unlike `Document::open`, so it is safe to unconditionally // parse the module. let (maybe_parsed_source, maybe_module) = parse_and_analyze_module( diff --git a/cli/tsc/dts/lib.dom.d.ts b/cli/tsc/dts/lib.dom.d.ts index fab313d11..da7364f2a 100644 --- a/cli/tsc/dts/lib.dom.d.ts +++ b/cli/tsc/dts/lib.dom.d.ts @@ -25582,7 +25582,7 @@ interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) */ diff --git a/cli/tsc/dts/lib.webworker.d.ts b/cli/tsc/dts/lib.webworker.d.ts index 8fd57617a..0cc7df77d 100644 --- a/cli/tsc/dts/lib.webworker.d.ts +++ b/cli/tsc/dts/lib.webworker.d.ts @@ -8292,7 +8292,7 @@ interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) */ diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs index 6f8035bec..383ed1291 100644 --- a/cli/tsc/mod.rs +++ b/cli/tsc/mod.rs @@ -60,7 +60,7 @@ pub static COMPILER_SNAPSHOT: Lazy<Box<[u8]>> = Lazy::new( // NOTE(bartlomieju): Compressing the TSC snapshot in debug build took // ~45s on M1 MacBook Pro; without compression it took ~1s. - // Thus we're not not using compressed snapshot, trading off + // Thus we're not using compressed snapshot, trading off // a lot of build time for some startup time in debug build. #[cfg(debug_assertions)] return COMPRESSED_COMPILER_SNAPSHOT.to_vec().into_boxed_slice(); diff --git a/ext/node/polyfills/internal/util/inspect.mjs b/ext/node/polyfills/internal/util/inspect.mjs index 2f9167dfb..20974db59 100644 --- a/ext/node/polyfills/internal/util/inspect.mjs +++ b/ext/node/polyfills/internal/util/inspect.mjs @@ -346,7 +346,7 @@ function hasBuiltInToString(value) { return true; } - // The object has a own `toString` property. Thus it's not not a built-in one. + // The object has a own `toString` property. Thus it's not a built-in one. if (Object.prototype.hasOwnProperty.call(value, "toString")) { return false; } diff --git a/ext/websocket/lib.deno_websocket.d.ts b/ext/websocket/lib.deno_websocket.d.ts index f3b496f3e..b7227c255 100644 --- a/ext/websocket/lib.deno_websocket.d.ts +++ b/ext/websocket/lib.deno_websocket.d.ts @@ -85,7 +85,7 @@ declare interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. */ close(code?: number, reason?: string): void; /** |