From 4e9baa7511d57e720f725598ad2b4945613fac40 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Sun, 22 Mar 2026 07:29:51 -0400 Subject: [PATCH] Fix doubled words in comments and docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix "to to" → "to" in migrator.rb - Fix "as as" → "as a" in utils/curl.rb - Fix "are are" → "are" in unbottled.rb - Fix "a the" → "the" in Cask-Cookbook.md --- Library/Homebrew/dev-cmd/unbottled.rb | 2 +- Library/Homebrew/migrator.rb | 2 +- Library/Homebrew/utils/curl.rb | 2 +- docs/Cask-Cookbook.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 26eb590c45c48..31773c9f7b9bb 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -166,7 +166,7 @@ def formulae_all_installs_from_args(eval_all) formulae = Array(formulae).reject { |f| f.deprecated? || f.disabled? } if formulae.present? all_formulae = Array(all_formulae).reject { |f| f.deprecated? || f.disabled? } if all_formulae.present? - # Remove portable formulae as they are are handled differently + # Remove portable formulae as they are handled differently formulae = formulae.reject { |f| PORTABLE_FORMULAE.include?(f.name) } if formulae.present? all_formulae = all_formulae.reject { |f| PORTABLE_FORMULAE.include?(f.name) } if all_formulae.present? diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index 309ebcbe2e615..b3d2f58714bc4 100644 --- a/Library/Homebrew/migrator.rb +++ b/Library/Homebrew/migrator.rb @@ -329,7 +329,7 @@ def repin old_pin_link_record = self.old_pin_link_record return unless old_pin_link_record - # `old_pin_record` is a relative symlink and when we try to to read it + # `old_pin_record` is a relative symlink and when we try to read it # from we actually try to find file # /../<...>/../Cellar/name/version. # To repin formula we need to update the link thus that it points to diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 9de73183ca75f..b4125a570105d 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -527,7 +527,7 @@ def curl_http_content_headers_and_checksum( file = Tempfile.new.tap(&:close) # Convert specs to options. This is mostly key-value options, - # unless the value is a boolean in which case treat as as flag. + # unless the value is a boolean in which case treat as a flag. specs = specs.flat_map do |option, argument| next [] if argument == false # No flag. diff --git a/docs/Cask-Cookbook.md b/docs/Cask-Cookbook.md index d7604e82771d3..6eb894e0de05e 100644 --- a/docs/Cask-Cookbook.md +++ b/docs/Cask-Cookbook.md @@ -256,7 +256,7 @@ Behaviour and usage of `target:` is [the same as with `app`](#renaming-the-targe ### Stanza: `rename` The `rename` stanza provides a convenience method to rename files to provide more practical access to them. -This stanza should be used sparingly, and is reserved for scenarios where a the path of a file/directory is impossible to pre-determine. +This stanza should be used sparingly, and is reserved for scenarios where the path of a file/directory is impossible to pre-determine. The example below can be used when the `pkg` path has a value such as timestamp that can't be detected without extracting the archive it is distributed within.