diff --git a/docs/Brew-Livecheck.md b/docs/Brew-Livecheck.md index 36cfce54bf8c6a..bca5bde5ac25b9 100644 --- a/docs/Brew-Livecheck.md +++ b/docs/Brew-Livecheck.md @@ -188,7 +188,7 @@ A `strategy` block for `Git` is a bit different, as the block receives an array livecheck do url :stable strategy :git do |tags| - tags.map { |tag| tag[/^(\d{4}-\d{2}-\d{2})$/i, 1]&.gsub(/\D/, "") }.compact + tags.filter_map { |tag| tag[/^(\d{4}-\d{2}-\d{2})$/i, 1]&.gsub(/\D/, "") } end end ``` diff --git a/docs/External-Commands.md b/docs/External-Commands.md index ec5f5f4c84ca7e..05ab51e46a2bba 100644 --- a/docs/External-Commands.md +++ b/docs/External-Commands.md @@ -73,9 +73,9 @@ module Homebrew Do something. Place a description here. EOS switch "-f", "--force", - description: "Force doing something in the command." + description: "Force doing something in the command." flag "--file=", - description: "Specify a file to do something with in the command." + description: "Specify a file to do something with in the command." comma_array "--names", description: "Add a list of names to the command."