Fix typos in comments

Resolves #538

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-09-16 06:52:16 -04:00
parent 7132e7eed9
commit 47f4b5c0da
No known key found for this signature in database
5 changed files with 6 additions and 6 deletions

View file

@ -69,7 +69,7 @@ public struct LuckyCommand: CommandProtocol {
///
/// - Parameters:
/// - appId: App identifier
/// - options: command opetions.
/// - options: command options.
/// - Returns: Result of the operation.
fileprivate func install(_ appId: UInt64, options: Options) -> Result<Void, MASError> {
// Try to download applications with given identifiers and collect results

View file

@ -6,7 +6,7 @@
// Copyright © 2020 mas-cli. All rights reserved.
//
/// Somewhat analygous to CKSoftwareMap
/// Somewhat analogous to CKSoftwareMap
protocol SoftwareMap {
func allSoftwareProducts() -> [SoftwareProduct]
func product(for bundleIdentifier: String) -> SoftwareProduct?

View file

@ -15,8 +15,8 @@ enum AppListFormatter {
/// Formats text output with list results.
///
/// - Parameter products: List of sortware products app data.
/// - Returns: Multiliune text outoutp.
/// - Parameter products: List of software products app data.
/// - Returns: Multiline text output.
static func format(products: [SoftwareProduct]) -> String {
// find longest appName for formatting, default 50
let maxLength = products.map(\.appNameOrBundleIdentifier.count).max() ?? nameColumnMinWidth

View file

@ -13,7 +13,7 @@ enum SearchResultFormatter {
/// Formats text output with search results.
///
/// - Parameter results: Search results with app data
/// - Returns: Multiliune text outoutp.
/// - Returns: Multiline text output.
static func format(results: [SearchResult], includePrice: Bool = false) -> String {
// find longest appName for formatting, default 50
let maxLength = results.map(\.trackName.count).max() ?? 50

View file

@ -27,7 +27,7 @@ class AppLibraryMock: AppLibrary {
}
}
/// Members not part of the AppLibrary protocol that are only for test state managment.
/// Members not part of the AppLibrary protocol that are only for test state management.
extension AppLibraryMock {
/// Clears out the list of installed apps.
func reset() {