summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwelfuture <167498261+welfuture@users.noreply.github.com>2024-04-21 07:54:07 +0800
committerGitHub <noreply@github.com>2024-04-21 01:54:07 +0200
commite55087f57af657069090f63517ec776d8958e410 (patch)
treecd627d6d56ffc6118fd83d56945a3b11764bcfaa
parentdb3b3fb665bba7a063e038907efbc0a14d863d63 (diff)
fix: Fix some typos in comments (#23470)
Signed-off-by: welfuture <wellfuture@qq.com>
-rw-r--r--cli/tsc/00_typescript.js2
-rw-r--r--ext/cron/01_cron.ts2
-rw-r--r--ext/node/ops/os/cpus.rs2
-rw-r--r--tests/testdata/fmt/with_config/subdir/c.md2
4 files changed, 4 insertions, 4 deletions
diff --git a/cli/tsc/00_typescript.js b/cli/tsc/00_typescript.js
index ea64a5896..a9ad0713b 100644
--- a/cli/tsc/00_typescript.js
+++ b/cli/tsc/00_typescript.js
@@ -150636,7 +150636,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
break;
case 3 /* CommonJS */:
case 2 /* Namespace */:
- Debug.assert(entry.namespaceLikeImport === void 0 || entry.namespaceLikeImport.name === symbolName2, "Namespacelike import shoudl be missing or match symbolName");
+ Debug.assert(entry.namespaceLikeImport === void 0 || entry.namespaceLikeImport.name === symbolName2, "Namespacelike import should be missing or match symbolName");
entry.namespaceLikeImport = { importKind, name: symbolName2, addAsTypeOnly };
break;
}
diff --git a/ext/cron/01_cron.ts b/ext/cron/01_cron.ts
index 3341d1a78..7592e75ef 100644
--- a/ext/cron/01_cron.ts
+++ b/ext/cron/01_cron.ts
@@ -69,7 +69,7 @@ export function parseScheduleToString(
// Automatically override unspecified values for convenience. For example,
// to run every 2 hours, `{ hour: { every: 2 } }` can be specified without
- // explicitely specifying `minute`.
+ // explicitly specifying `minute`.
if (minute !== undefined) {
// Nothing to override.
} else if (hour !== undefined) {
diff --git a/ext/node/ops/os/cpus.rs b/ext/node/ops/os/cpus.rs
index bf83f7e7d..2e3d2a954 100644
--- a/ext/node/ops/os/cpus.rs
+++ b/ext/node/ops/os/cpus.rs
@@ -240,7 +240,7 @@ pub fn cpu_info() -> Option<Vec<CpuInfo>> {
pub fn cpu_info() -> Option<Vec<CpuInfo>> {
use std::io::BufRead;
- let mut cpus = vec![CpuInfo::new(); 8192]; /* Kernel maxmimum */
+ let mut cpus = vec![CpuInfo::new(); 8192]; /* Kernel maximum */
let fp = std::fs::File::open("/proc/stat").ok()?;
let reader = std::io::BufReader::new(fp);
diff --git a/tests/testdata/fmt/with_config/subdir/c.md b/tests/testdata/fmt/with_config/subdir/c.md
index 012f7e3d4..70a426af2 100644
--- a/tests/testdata/fmt/with_config/subdir/c.md
+++ b/tests/testdata/fmt/with_config/subdir/c.md
@@ -5,7 +5,7 @@ unless you specifically enable it, a
program run with Deno has no file,
network, or environment access. Access
to security sensitive functionality
-requires that permisisons have been
+requires that permissions have been
granted to an executing script through
command line flags, or a runtime
permission prompt.