Skip to content

Commit 9e14482

Browse files
authored
Correct Typos (#388)
1 parent 00a8677 commit 9e14482

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct FishCompletionsGenerator {
4141
/// We ask each suggestion to produce 2 pieces of information
4242
/// - Parameters
4343
/// - ancestors: a list of "ancestor" which must be present in the current shell buffer for
44-
/// this suggetion to be considered. This could be a combination of (nested)
44+
/// this suggestion to be considered. This could be a combination of (nested)
4545
/// subcommands and flags.
4646
/// - suggestion: text for the actual suggestion
4747
/// - Returns: A completion expression

Sources/ArgumentParser/Parsable Properties/Argument.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extension Argument where Value: ExpressibleByArgument {
120120
/// ```
121121
///
122122
/// - Parameters:
123-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
123+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
124124
/// - help: Information about how to use this argument.
125125
public init(
126126
wrappedValue: Value,
@@ -481,7 +481,7 @@ extension Argument {
481481
///
482482
/// This method is called to initialize an array `Argument` with no default value such as:
483483
/// ```swift
484-
/// @Argument(tranform: baz)
484+
/// @Argument(transform: baz)
485485
/// var foo: [String]
486486
/// ```
487487
///

Sources/ArgumentParser/Parsable Properties/Flag.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ extension Flag where Value == Bool {
231231
/// Creates a Boolean property with default value provided by standard Swift default value syntax that reads its value from the presence of a flag.
232232
///
233233
/// - Parameters:
234-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
234+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
235235
/// - name: A specification for what names are allowed for this flag.
236236
/// - help: Information about how to use this flag.
237237
public init(
@@ -273,7 +273,7 @@ extension Flag where Value == Bool {
273273
///
274274
/// - Parameters:
275275
/// - name: A specification for what names are allowed for this flag.
276-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
276+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
277277
/// - inversion: The method for converting this flag's name into an on/off pair.
278278
/// - exclusivity: The behavior to use when an on/off pair of flags is specified.
279279
/// - help: Information about how to use this flag.
@@ -305,7 +305,7 @@ extension Flag where Value == Bool {
305305
///
306306
/// - Parameters:
307307
/// - name: A specification for what names are allowed for this flag.
308-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
308+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
309309
/// - inversion: The method for converting this flag's name into an on/off pair.
310310
/// - exclusivity: The behavior to use when an on/off pair of flags is specified.
311311
/// - help: Information about how to use this flag.
@@ -393,7 +393,7 @@ extension Flag where Value: EnumerableFlag {
393393
/// ```
394394
///
395395
/// - Parameters:
396-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
396+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
397397
/// - exclusivity: The behavior to use when multiple flags are specified.
398398
/// - help: Information about how to use this flag.
399399
public init(

Sources/ArgumentParser/Parsable Properties/Option.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ extension Option where Value: ExpressibleByArgument {
134134
/// ```
135135
///
136136
/// - Parameters:
137-
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during propery wrapper initialization.
137+
/// - wrappedValue: A default value to use for this property, provided implicitly by the compiler during property wrapper initialization.
138138
/// - name: A specification for what names are allowed for this flag.
139139
/// - parsingStrategy: The behavior to use when looking for this option's value.
140140
/// - help: Information about how to use this option.

Sources/ArgumentParser/Parsing/InputOrigin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/// Specifies where a given input came from.
1313
///
14-
/// When reading from the command line, a value might originate from a sinlge
14+
/// When reading from the command line, a value might originate from a single
1515
/// index, multiple indices, or from part of an index. For this command:
1616
///
1717
/// struct Example: ParsableCommand {

Sources/ArgumentParser/Parsing/SplitArguments.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct SplitArguments {
169169
}
170170
}
171171

172-
/// The parsed arguments. Onl
172+
/// The parsed arguments.
173173
var _elements: [Element] = []
174174
var firstUnused: Int = 0
175175

Sources/ArgumentParser/Usage/UsageGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ extension ErrorMessageGenerator {
398398
let valueName = argumentValue?.valueName
399399

400400
// We want to make the "best effort" in producing a custom error message.
401-
// We favour `LocalizedError.errorDescription` and fall back to
401+
// We favor `LocalizedError.errorDescription` and fall back to
402402
// `CustomStringConvertible`. To opt in, return your custom error message
403403
// as the `description` property of `CustomStringConvertible`.
404404
let customErrorMessage: String = {

Sources/ArgumentParser/Utilities/SequenceExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
extension Sequence where Element: Hashable {
1313
/// Returns an array with only the unique elements of this sequence, in the
14-
/// order of the first occurence of each unique element.
14+
/// order of the first occurrence of each unique element.
1515
func uniquing() -> [Element] {
1616
var seen = Set<Element>()
1717
return self.filter { seen.insert($0).0 }

Tests/ArgumentParserEndToEndTests/ValidationEndToEndTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ extension ValidationEndToEndTests {
135135
}
136136

137137
func testCustomErrorValidation() {
138-
// verify that error description is printed if avaiable via LocalizedError
138+
// verify that error description is printed if available via LocalizedError
139139
AssertErrorMessage(Foo.self, ["--throw", "Joe"], UserValidationError.userValidationError.errorDescription!)
140140
}
141141

0 commit comments

Comments
 (0)