Skip to content

Commit b9565bb

Browse files
committed
Update DocC.
Signed-off-by: Ross Goldberg <[email protected]>
1 parent 374d008 commit b9565bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/ArgumentParser/Parsable Properties/CompletionKind.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public struct CompletionKind {
179179
/// Deprecated; only kept for backwards compatibility.
180180
///
181181
/// The same as `custom(@Sendable @escaping ([String], Int, String) -> [String])`,
182-
/// except that index arguments are not supplied.
182+
/// except that the last two closure arguments are not supplied.
183183
@preconcurrency
184184
@available(
185185
*,

Sources/ArgumentParserToolInfo/ToolInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ public struct ArgumentInfoV0: Codable, Hashable {
149149
case directory
150150
/// Call the given shell command to generate completions.
151151
case shellCommand(command: String)
152-
/// Generate completions using the given closure including index arguments.
152+
/// Generate completions using the given three-argument closure.
153153
case custom
154-
/// Generate completions using the given closure without index arguments.
154+
/// Generate completions using the given one-argument closure.
155155
@available(*, deprecated, message: "Use custom instead.")
156156
case customDeprecated
157157
}

0 commit comments

Comments
 (0)