From 14fdbf28dc7c6fd8741a144bff517ef86572e6c2 Mon Sep 17 00:00:00 2001 From: RoomWithOutRoof <166608075+Jah-yee@users.noreply.github.com> Date: Mon, 2 Nov 2026 09:09:43 +0800 Subject: [PATCH] Fix typos in comments and documentation (#2945) --- Sparkle/SPUAppcastItemStateResolver.m | 2 +- Sparkle/SPUAppcastSigningValidationStatus.h | 2 +- Sparkle/SPUStandardUserDriver.m | 6 +++--- Sparkle/SPUUpdaterDelegate.h | 2 +- Sparkle/SPUUpdaterSettings.h | 2 +- Sparkle/SUTextViewReleaseNotesView.m | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sparkle/SPUAppcastItemStateResolver.m b/Sparkle/SPUAppcastItemStateResolver.m index 9f1ee60e..e1cbcd33 100644 --- a/Sparkle/SPUAppcastItemStateResolver.m +++ b/Sparkle/SPUAppcastItemStateResolver.m @@ -149,7 +149,7 @@ return NO; } - // An error occured + // An error occurred SULog(SULogLevelError, @"Error: failed to detect if process is running under rosetta with error: %d", errno); return YES; } diff --git a/Sparkle/SPUAppcastSigningValidationStatus.h b/Sparkle/SPUAppcastSigningValidationStatus.h index daaa9bc7..e87ab104 100644 --- a/Sparkle/SPUAppcastSigningValidationStatus.h +++ b/Sparkle/SPUAppcastSigningValidationStatus.h @@ -17,7 +17,7 @@ typedef NS_ENUM(NSInteger, SPUAppcastSigningValidationStatus) SPUAppcastSigningValidationStatusSkipped = 0, /** - The appcast is signed and validation has passed succesfully. + The appcast is signed and validation has passed successfully. */ SPUAppcastSigningValidationStatusSucceeded, diff --git a/Sparkle/SPUStandardUserDriver.m b/Sparkle/SPUStandardUserDriver.m index 355096ec..c3743ee4 100644 --- a/Sparkle/SPUStandardUserDriver.m +++ b/Sparkle/SPUStandardUserDriver.m @@ -127,7 +127,7 @@ static const NSTimeInterval SUShowCheckingForUpdatesTimeDelay = 0.3; - (void)_activateApplication SPU_OBJC_DIRECT { // -[NSApp activate] does not always work reliably from backgrounded apps when the user initiates checks for updates - // from e.g. a menu bar. The OS should grant active focus to the appliation, but it is inconsistent (last tested on 26.5.1). + // from e.g. a menu bar. The OS should grant active focus to the application, but it is inconsistent (last tested on 26.5.1). // For now we will prefer the deprecated more reliant API [NSApp activateIgnoringOtherApps:YES]; } @@ -555,7 +555,7 @@ static const NSTimeInterval SUShowCheckingForUpdatesTimeDelay = 0.3; } // Don't show checking for updates window immediately - // Only show it if the check is taking a noticable amount of time. + // Only show it if the check is taking a noticeable amount of time. // This reduces the chance of a very sudden/quick transition between // checking for updates and showing the next UI. __weak __typeof__(self) weakSelf = self; @@ -615,7 +615,7 @@ static const NSTimeInterval SUShowCheckingForUpdatesTimeDelay = 0.3; // Ideally we should use -[NSAlert alertWithError:] however // unfortunately Sparkle may return error messages with descriptions that contain // recovery suggestions. So we will check if an explicit recovery suggestion exists, - // and set the mesage and informative text appropriately. + // and set the message and informative text appropriately. // In the future we should audit potential error messages and make them consistent. NSAlert *alert = [[NSAlert alloc] init]; NSString *recoverySuggestion = [error localizedRecoverySuggestion]; diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index eb5b5e37..f11d5f84 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -186,7 +186,7 @@ NS_SWIFT_UI_ACTOR @protocol SPUUpdaterDelegate - `SPULatestAppcastItemFoundKey`: if available, this may provide the latest `SUAppcastItem` that was found. This will be @c nil if it's unavailable. - `SPUNoUpdateFoundReasonKey`: This will provide the `SPUNoUpdateFoundReason`. For example the reason could be because the latest version in the feed requires a newer OS version or could be because the user is already on the latest version. - - `SPUNoUpdateFoundUserInitiatedKey`: A boolean that indicates if a new update was not found when the user intitiated an update check manually. + - `SPUNoUpdateFoundUserInitiatedKey`: A boolean that indicates if a new update was not found when the user initiated an update check manually. @param updater The updater instance. @param error An error containing information on why a new valid update was not found diff --git a/Sparkle/SPUUpdaterSettings.h b/Sparkle/SPUUpdaterSettings.h index e79492af..2f4800e7 100644 --- a/Sparkle/SPUUpdaterSettings.h +++ b/Sparkle/SPUUpdaterSettings.h @@ -79,7 +79,7 @@ SU_EXPORT NS_SWIFT_UI_ACTOR @interface SPUUpdaterSettings : NSObject * The impatient update check interval. * * If an update has already been downloaded automatically in the background, Sparkle may not notify users of the update immediately, - * and tries to install the update siliently on quit without notifying the user. + * and tries to install the update silently on quit without notifying the user. * * Sparkle uses this long impatient update check interval to decide when to notify the user of the update if they haven't quit the app for a long time. * By default this check interval is set to 604800 seconds (which is 1 week). This interval must be bigger than the `updateCheckInterval`. diff --git a/Sparkle/SUTextViewReleaseNotesView.m b/Sparkle/SUTextViewReleaseNotesView.m index 0343e0dc..3027393a 100644 --- a/Sparkle/SUTextViewReleaseNotesView.m +++ b/Sparkle/SUTextViewReleaseNotesView.m @@ -213,7 +213,7 @@ static void processMarkdownFragmentAttributedString(NSAttributedString *fragment } case NSPresentationIntentKindBlockQuote: { // Advance text that wraps to next line by this divider width - // Multiple levels of block quotes will be advanced mulitiple times + // Multiple levels of block quotes will be advanced multiple times // Special rendering via text attachments or decorations is not done because // it's complex and may have tradeoffs