summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorAndreas Deininger <andreas@deininger.net>2024-08-02 13:26:54 +0200
committerGitHub <noreply@github.com>2024-08-02 13:26:54 +0200
commitea121c9a0e162a83beeae62ed9e5a7911877bcbc (patch)
tree595186262a70cbdc22c067a9d5815a51103c25fc /cli
parentbcdf600ae40af8880d9c6d8e0c64179de274290f (diff)
docs: fix typos (#24820)
This PR fixes various typos I spotted in the project.
Diffstat (limited to 'cli')
-rw-r--r--cli/args/flags.rs2
-rw-r--r--cli/cache/cache_db.rs2
-rw-r--r--cli/lsp/diagnostics.rs2
-rw-r--r--cli/tools/compile.rs2
-rw-r--r--cli/tools/registry/pm.rs2
-rw-r--r--cli/tools/repl/session.rs2
-rw-r--r--cli/tsc/99_main_compiler.js4
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts2
8 files changed, 9 insertions, 9 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index 91adac84b..59e535ee0 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -4257,7 +4257,7 @@ fn run_parse(
// for old versions of @netlify/edge-bundler with new versions of Deno
// where Deno has gotten smarter at resolving config files.
//
- // It's an unfortuante scenario, but Netlify has the version at least
+ // It's an unfortunate scenario, but Netlify has the version at least
// pinned to 1.x in old versions so we can remove this in Deno 2.0 in
// a few months.
fn temp_netlify_deno_1_hack(flags: &mut Flags, script_arg: &str) {
diff --git a/cli/cache/cache_db.rs b/cli/cache/cache_db.rs
index 856587292..b24078f29 100644
--- a/cli/cache/cache_db.rs
+++ b/cli/cache/cache_db.rs
@@ -470,7 +470,7 @@ mod tests {
};
static TEST_DB_BLACKHOLE: CacheDBConfiguration = CacheDBConfiguration {
- table_initializer: "syntax error", // intentially cause an error
+ table_initializer: "syntax error", // intentionally cause an error
on_version_change: "",
preheat_queries: &[],
on_failure: CacheFailure::Blackhole,
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index ed92c400f..69f3b1145 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -1532,7 +1532,7 @@ fn diagnose_dependency(
// If not @deno-types, diagnose the types if the code errored because
// it's likely resolving into the node_modules folder, which might be
// erroring correctly due to resolution only being for bundlers. Let this
- // fail at runtime if necesarry, but don't bother erroring in the editor
+ // fail at runtime if necessary, but don't bother erroring in the editor
|| !is_types_deno_types && matches!(dependency.maybe_type, Resolution::Ok(_))
&& matches!(dependency.maybe_code, Resolution::Err(_))
{
diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs
index f0534abc3..6cf2ccf77 100644
--- a/cli/tools/compile.rs
+++ b/cli/tools/compile.rs
@@ -47,7 +47,7 @@ pub async fn compile(
log::warn!(
concat!(
"{} Sloppy imports are not supported in deno compile. ",
- "The compiled executable may encouter runtime errors.",
+ "The compiled executable may encounter runtime errors.",
),
crate::colors::yellow("Warning"),
);
diff --git a/cli/tools/registry/pm.rs b/cli/tools/registry/pm.rs
index 2986c1c2a..a3ece03e7 100644
--- a/cli/tools/registry/pm.rs
+++ b/cli/tools/registry/pm.rs
@@ -488,7 +488,7 @@ fn update_config_file_content(
text_changes.push(TextChange {
range: insert_position..insert_position,
// NOTE(bartlomieju): adding `\n` here to force the formatter to always
- // produce a config file that is multline, like so:
+ // produce a config file that is multiline, like so:
// ```
// {
// "imports": {
diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs
index 3e43ea3ab..b379c3646 100644
--- a/cli/tools/repl/session.rs
+++ b/cli/tools/repl/session.rs
@@ -866,7 +866,7 @@ impl AnalyzedJsxPragmas {
}
/// Analyze provided source and return information about carious pragmas
-/// used to configure the JSX tranforms.
+/// used to configure the JSX transforms.
fn analyze_jsx_pragmas(
parsed_source: &ParsedSource,
) -> Option<AnalyzedJsxPragmas> {
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 75c6f8117..a0bce0133 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -490,7 +490,7 @@ delete Object.prototype.__proto__;
// anything. We prefer to treat these as modules with no exports.
2306,
// TS2688: Cannot find type definition file for '...'.
- // We ignore because type defintion files can end with '.ts'.
+ // We ignore because type definition files can end with '.ts'.
2688,
// TS2792: Cannot find module. Did you mean to set the 'moduleResolution'
// option to 'node', or to add aliases to the 'paths' option?
@@ -1106,7 +1106,7 @@ delete Object.prototype.__proto__;
* @param {any} data
* @param {string | null} error
*/
- // TODO(bartlomieju): this feels needlessly generic, both type chcking
+ // TODO(bartlomieju): this feels needlessly generic, both type checking
// and language server use it with inefficient serialization. Id is not used
// anyway...
function respond(_id, data = null, error = null) {
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index f76b67dd8..e940bfca9 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -960,7 +960,7 @@ declare namespace Deno {
caCerts?: string[];
/** A HTTP proxy to use for new connections. */
proxy?: Proxy;
- /** Sets the maximum numer of idle connections per host allowed in the pool. */
+ /** Sets the maximum number of idle connections per host allowed in the pool. */
poolMaxIdlePerHost?: number;
/** Set an optional timeout for idle sockets being kept-alive.
* Set to false to disable the timeout. */