Skip to content

Commit 35e58f7

Browse files
josevalimrmand97
andauthored
Update lib/elixir/lib/option_parser.ex
Co-authored-by: rmand97 <[email protected]>
1 parent c729f2d commit 35e58f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/elixir/lib/option_parser.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,7 @@ defmodule OptionParser do
970970
alias_str =
971971
alias_list
972972
|> Enum.sort()
973-
|> Enum.map(&("-" <> Atom.to_string(&1)))
974-
|> Enum.join(", ")
973+
|> Enum.map_join(", ", &("-" <> Atom.to_string(&1)))
975974

976975
base <> " (alias: #{alias_str})"
977976
end

0 commit comments

Comments
 (0)