Skip to content

Commit 32d121f

Browse files
mokagioclaude
andauthored
Fix typos in comments and docs (#25584)
* Fix typo in `BuildConfiguration.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `BarChartView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `LineChartView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in XCUIApplication+ScrollDownToElement.s --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `TranslationViewModel.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `WordPressAPIError.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `WordPressOrgXMLRPCApi.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `AccountServiceRemoteREST.m` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `WPTableViewHandler.m` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `CommentWebView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `AppLocalizedString.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `String+RangeConveresion.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `UIView+Animations.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `WordPressComAccountService.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `SiteInfoHeaderView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `BlogDashboardServiceTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in PreviewWebKitViewControllerTests.swift --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `QRLoginVerifyCoordinatorTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ReaderInterestsDataSourceTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in NotificationSettingsServiceTests.swift --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `NotificationSyncMediatorTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `PostCoordinatorTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `PostRepositorySaveTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ReaderTopicServiceTest.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `PagesListTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `CodeVerifierTests.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `Media+Sync.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `CommentService.m` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `MediaImageService.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `MediaImportService.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `MediaSettings.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ReaderPostService.m` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `SharingService.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `NoticeStore.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `JetpackWindowManager.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `GutenbergRequestAuthenticator.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in InteractiveNotificationsManager.swift --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `WebKitViewController.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `WebNavigationDelegate.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `CommentContentTableViewCell.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ImageCropOverlayView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `MediaStorageDetailsView.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `PostEditor+Publish.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typos in `ReaderStreamViewController.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ReaderTableContent.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `AppExtensionsService.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in ShareExtensionEditorViewController.swi --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `ShareModularViewController.swift` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * Fix typo in `codesign.rb` --- Generated with the help of Claude Code, https://claude.com/claude-code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5e9b6b3 commit 32d121f

49 files changed

Lines changed: 61 additions & 61 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Modules/Sources/BuildSettingsKit/BuildConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public enum BuildConfiguration: String, Sendable {
1313
BuildSettings.current.configuration
1414
}
1515

16-
/// Returns `true` if the build is intented only for internal use.
16+
/// Returns `true` if the build is intended only for internal use.
1717
public var isInternal: Bool {
1818
switch self {
1919
case .debug, .alpha: true

Modules/Sources/JetpackStats/Charts/BarChartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ struct BarChartView: View {
267267
return 0...100
268268
}
269269
guard data.maxValue > 0 else {
270-
return data.maxValue...0 // Just in case; should never happend
270+
return data.maxValue...0 // Just in case; should never happen
271271
}
272272
// Add some padding above the max value
273273
let padding = max(Int(Double(data.maxValue) * 0.33), 1)

Modules/Sources/JetpackStats/Charts/LineChartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ struct LineChartView: View {
262262
return 0...100
263263
}
264264
guard data.maxValue > 0 else {
265-
return data.maxValue...0 // Just in case; should never happend
265+
return data.maxValue...0 // Just in case; should never happen
266266
}
267267
// Add some padding above the max value
268268
let padding = max(Int(Double(data.maxValue) * 0.33), 1)

Modules/Sources/UITestsFoundation/XCUIApplication+ScrollDownToElement.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import XCTest
33
// Taken from https://stackoverflow.com/a/46943935
44
extension XCUIApplication {
55
private struct Constants {
6-
// Half way accross the screen and 40% from top
6+
// Half way across the screen and 40% from top
77
static let topOffset = CGVector(dx: 0.5, dy: 0.4)
88

9-
// Half way accross the screen and 70% from top
9+
// Half way across the screen and 70% from top
1010
static let bottomOffset = CGVector(dx: 0.5, dy: 0.7)
1111
}
1212

Modules/Sources/WordPressIntelligence/UseCases/TranslationViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public final class TranslationViewModel: ObservableObject {
5454
public func checkAvailability(for content: String, to targetLanguage: Locale.Language = Locale.current.language) async -> TranslationAvailability {
5555
// Important. The `Translation` framework is effective at translating
5656
// HTML, but the `status(...)` method and `NLLanguageRecognizer`
57-
// incorrectly identify dominant langauge as English if a post has a
58-
// signifcant amount of HTML tags and/or CSS styles.
57+
// incorrectly identify dominant language as English if a post has a
58+
// significant amount of HTML tags and/or CSS styles.
5959
let content = (try? ContentExtractor.extractRelevantText(from: content)) ?? content
6060

6161
guard let identifier = IntelligenceService.detectLanguage(from: content) else {

Modules/Sources/WordPressKit/WordPressAPIError.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ import Foundation
55
NSLocalizedString(
66
"wordpress-api.error.unknown",
77
value: "Something went wrong, please try again later.",
8-
comment: "Error message that describes an unknown error had occured"
8+
comment: "Error message that describes an unknown error had occurred"
99
)
1010
}
1111

1212
/// Can't encode the request arguments into a valid HTTP request. This is a programming error.
1313
case requestEncodingFailure(underlyingError: Error)
14-
/// Error occured in the HTTP connection.
14+
/// Error occurred in the HTTP connection.
1515
case connection(URLError)
1616
/// The API call returned an error result. For example, an OAuth endpoint may return an 'incorrect username or password' error, an upload media endpoint may return an 'unsupported media type' error.
1717
case endpointError(EndpointError)
1818
/// The API call returned an status code that's unacceptable to the endpoint.
1919
case unacceptableStatusCode(response: HTTPURLResponse, body: Data)
2020
/// The API call returned an HTTP response that WordPressKit can't parse. Receiving this error could be an indicator that there is an error response that's not handled properly by WordPressKit.
2121
case unparsableResponse(response: HTTPURLResponse?, body: Data?, underlyingError: Error)
22-
/// Other error occured.
22+
/// Other error occurred.
2323
case unknown(underlyingError: Error)
2424

2525
static func unparsableResponse(response: HTTPURLResponse?, body: Data?) -> Self {

Modules/Sources/WordPressKit/WordPressOrgXMLRPCApi.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ extension WordPressOrgXMLRPCApiError: LocalizedError {
323323
case .responseSerializationFailed:
324324
return NSLocalizedString("The serialization of the response failed.", comment: "A failure reason for when the response couldn't be serialized.")
325325
case .unknown:
326-
return NSLocalizedString("An unknown error occurred.", comment: "A failure reason for when the error that occured wasn't able to be determined.")
326+
return NSLocalizedString("An unknown error occurred.", comment: "A failure reason for when the error that occurred wasn't able to be determined.")
327327
}
328328
}
329329
}

Modules/Sources/WordPressKitObjC/AccountServiceRemoteREST.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ - (void)updateBlogsVisibility:(NSDictionary *)blogs
9797
NSParameterAssert([key isKindOfClass:[NSNumber class]]);
9898
NSParameterAssert([obj isKindOfClass:[NSNumber class]]);
9999
/*
100-
Blog IDs are pased as strings because JSON dictionaries can't take
100+
Blog IDs are passed as strings because JSON dictionaries can't take
101101
non-string keys. If you try, you get a NSInvalidArgumentException
102102
*/
103103
NSString *blogID = [key stringValue];

Modules/Sources/WordPressLegacy/WPTableViewHandler.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ - (void)refreshTableViewPreservingOffset
202202
// Clean up
203203
[self discardPreservedRowInfo];
204204

205-
// Notify the delegate that a refresh has occured. Allows the delegate
205+
// Notify the delegate that a refresh has occurred. Allows the delegate
206206
// perform any corrections to the offset, e.g. a negative offset due to a content
207207
// change that was not a post inserted above the previous zero visible index.
208208
if ([self.delegate respondsToSelector:@selector(tableViewHandlerDidRefreshTableViewPreservingOffset:)]) {

Modules/Sources/WordPressReader/Comments/Views/CommentWebView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
/// -warning: It's not designed to be used publically yet.
3+
/// -warning: It's not designed to be used publicly yet.
44
@MainActor
55
final class CommentWebView: UIView, CommentContentRendererDelegate {
66
let renderer = WebCommentContentRenderer()

0 commit comments

Comments
 (0)