Fix typos in comments and documentation (#2945)

This commit is contained in:
RoomWithOutRoof authored and GitHub committed 2026-11-01 17:09:43 -08:00
1 parent 0c8c6f2757
commit 14fdbf28dc
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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,
+3 -3
View File
@@ -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];
+1 -1
View File
@@ -186,7 +186,7 @@ NS_SWIFT_UI_ACTOR @protocol SPUUpdaterDelegate <NSObject>
- `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
+1 -1
View File
@@ -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`.
+1 -1
View File
@@ -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