From 37823cc4dd0e5bba1e8065782ff5ef3f04a9d397 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Tue, 29 Oct 2024 06:14:19 -0400 Subject: [PATCH] Fix typos in DocC. Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Controllers/AppStoreSearcher.swift | 4 ++-- Sources/mas/Controllers/ITunesSearchAppStoreSearcher.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/mas/Controllers/AppStoreSearcher.swift b/Sources/mas/Controllers/AppStoreSearcher.swift index 51393c20e..e72c3f33d 100644 --- a/Sources/mas/Controllers/AppStoreSearcher.swift +++ b/Sources/mas/Controllers/AppStoreSearcher.swift @@ -16,12 +16,12 @@ protocol AppStoreSearcher { /// - Parameter appID: App ID. /// - Returns: A `Promise` for the `SearchResult` for the given `appID` if `appID` is valid. /// A `Promise` for `MASError.unknownAppID(appID)` if `appID` is invalid. - /// An `Promise` for some other `Error` if any problems occur. + /// A `Promise` for some other `Error` if any problems occur. func lookup(appID: AppID) -> Promise /// Searches for apps. /// /// - Parameter searchTerm: Term for which to search. - /// - Returns: A `Promise` of an `Array` of `SearchResult`s matching `searchTerm`. + /// - Returns: A `Promise` for an `Array` of `SearchResult`s matching `searchTerm`. func search(for searchTerm: String) -> Promise<[SearchResult]> } diff --git a/Sources/mas/Controllers/ITunesSearchAppStoreSearcher.swift b/Sources/mas/Controllers/ITunesSearchAppStoreSearcher.swift index 72ef777e8..100b9d389 100644 --- a/Sources/mas/Controllers/ITunesSearchAppStoreSearcher.swift +++ b/Sources/mas/Controllers/ITunesSearchAppStoreSearcher.swift @@ -35,7 +35,7 @@ class ITunesSearchAppStoreSearcher: AppStoreSearcher { /// - Parameter appID: App ID. /// - Returns: A `Promise` for the `SearchResult` for the given `appID` if `appID` is valid. /// A `Promise` for `MASError.unknownAppID(appID)` if `appID` is invalid. - /// An `Promise` for some other `Error` if any problems occur. + /// A `Promise` for some other `Error` if any problems occur. func lookup(appID: AppID) -> Promise { guard let url = lookupURL(forAppID: appID, inCountry: country) else { fatalError("Failed to build URL for \(appID)") @@ -77,7 +77,7 @@ class ITunesSearchAppStoreSearcher: AppStoreSearcher { /// Searches for apps from the MAS. /// /// - Parameter searchTerm: Term for which to search in the MAS. - /// - Returns: A `Promise` of an `Array` of `SearchResult`s matching `searchTerm`. + /// - Returns: A `Promise` for an `Array` of `SearchResult`s matching `searchTerm`. func search(for searchTerm: String) -> Promise<[SearchResult]> { // Search for apps for compatible platforms, in order of preference. // Macs with Apple Silicon can run iPad and iPhone apps.