summaryrefslogtreecommitdiff
path: root/ext
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 /ext
parentdb3b3fb665bba7a063e038907efbc0a14d863d63 (diff)
fix: Fix some typos in comments (#23470)
Signed-off-by: welfuture <wellfuture@qq.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/cron/01_cron.ts2
-rw-r--r--ext/node/ops/os/cpus.rs2
2 files changed, 2 insertions, 2 deletions
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);