From dcf214f36be9f45bae96c55617b2a5dcf3f9ed98 Mon Sep 17 00:00:00 2001
From: timesince <seekseat@icloud.com>
Date: Mon, 12 Aug 2024 14:32:08 +0800
Subject: [PATCH] chore: fix some comments (#30697)

Signed-off-by: timesince <seekseat@icloud.com>
---
 lib/modules/manager/bundler/extract.ts              | 2 +-
 lib/modules/manager/npm/extract/common/overrides.ts | 2 +-
 lib/modules/versioning/unity3d/readme.md            | 2 +-
 lib/util/cache/repository/impl/local.ts             | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/modules/manager/bundler/extract.ts b/lib/modules/manager/bundler/extract.ts
index b204056b5d..403f698452 100644
--- a/lib/modules/manager/bundler/extract.ts
+++ b/lib/modules/manager/bundler/extract.ts
@@ -9,7 +9,7 @@ import { delimiters, extractRubyVersion, getLockFilePath } from './common';
 import { extractLockFileEntries } from './locked-version';
 
 function formatContent(input: string): string {
-  return input.replace(regEx(/^ {2}/), '') + '\n'; //remove leading witespace and add a new line at the end
+  return input.replace(regEx(/^ {2}/), '') + '\n'; //remove leading whitespace and add a new line at the end
 }
 
 export async function extractPackageFile(
diff --git a/lib/modules/manager/npm/extract/common/overrides.ts b/lib/modules/manager/npm/extract/common/overrides.ts
index 74f1ce2c0c..ce19ca981f 100644
--- a/lib/modules/manager/npm/extract/common/overrides.ts
+++ b/lib/modules/manager/npm/extract/common/overrides.ts
@@ -20,7 +20,7 @@ export function extractOverrideDepsRec(
   }
   for (const [overrideName, versionValue] of Object.entries(child)) {
     if (is.string(versionValue)) {
-      // special handling for "." override depenency name
+      // special handling for "." override dependency name
       // "." means the constraint is applied to the parent dep
       const currDepName =
         overrideName === '.' ? parents[parents.length - 1] : overrideName;
diff --git a/lib/modules/versioning/unity3d/readme.md b/lib/modules/versioning/unity3d/readme.md
index 537f80fc61..999b2730ac 100644
--- a/lib/modules/versioning/unity3d/readme.md
+++ b/lib/modules/versioning/unity3d/readme.md
@@ -4,7 +4,7 @@ Unity versioning follow semantic versioning, followed by a letter, number and an
 - Minor and patch version are incremental, starting at 0
 - The letter denotes a stream (**a**lpha, **b**eta, **f**inal release, etc.)
 - The number is a growing index
-- The hash is calculated by Unity internally and irrelevant for comparision
+- The hash is calculated by Unity internally and irrelevant for comparison
 
 Examples:
 
diff --git a/lib/util/cache/repository/impl/local.ts b/lib/util/cache/repository/impl/local.ts
index 961983c5a3..f5b34a8bc9 100644
--- a/lib/util/cache/repository/impl/local.ts
+++ b/lib/util/cache/repository/impl/local.ts
@@ -12,7 +12,7 @@ export class RepoCacheLocal extends RepoCacheBase {
   protected async read(): Promise<string | null> {
     const cacheFileName = this.getCacheFileName();
     try {
-      // suppress debug logs with errros
+      // suppress debug logs with errors
       if (!(await cachePathExists(cacheFileName))) {
         return null;
       }
-- 
GitLab