Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
Resolves #538

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Sep 16, 2024
1 parent 467796b commit 8b7b5e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/MasKit/Commands/Lucky.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/MasKit/Controllers/SoftwareMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions Sources/MasKit/Formatters/AppListFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/MasKit/Formatters/SearchResultFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/MasKitTests/Controllers/AppLibraryMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8b7b5e0

Please sign in to comment.