Skip to content

Commit 846d1ad

Browse files
authored
Provide type annotation for multi-line closure (#543)
1 parent 3b6f814 commit 846d1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension FishCompletionsGenerator {
3737
"\(prefix) \(suggestion)"
3838
}
3939

40-
let subcommandCompletions = subcommands.map { subcommand in
40+
let subcommandCompletions: [String] = subcommands.map { subcommand in
4141
let escapedAbstract = subcommand.configuration.abstract.fishEscape()
4242
let suggestion = "-f -a '\(subcommand._commandName)' -d '\(escapedAbstract)'"
4343
return complete(suggestion: suggestion)

0 commit comments

Comments
 (0)