diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 746786f98d..7b10da535a 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -116,7 +116,7 @@ module Hardware sysctl_bool("hw.optional.sse4_2") end - # Note: this is more reliable than checking uname. + # NOTE: this is more reliable than checking uname. # `sysctl` returns the right answer even when running in Rosetta 2. def physical_cpu_arm64? sysctl_bool("hw.optional.arm64") diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 896bc69c85..eae8373747 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -77,7 +77,7 @@ class Keg # remove all RPATHs from the file. if ENV["HOMEBREW_RELOCATE_METAVARS"] && file.dynamically_linked_libraries.none? { |lib| lib.start_with?("@rpath") } - # Note: This could probably be made more efficient by reverse-sorting + # NOTE: This could probably be made more efficient by reverse-sorting # the RPATHs by offset and calling MachOFile#delete_command # with repopulate: false. file.rpaths.each { |r| file.delete_rpath(r) } diff --git a/Library/Homebrew/test/utils/shell_spec.rb b/Library/Homebrew/test/utils/shell_spec.rb index 61c24e745f..3db721c63f 100644 --- a/Library/Homebrew/test/utils/shell_spec.rb +++ b/Library/Homebrew/test/utils/shell_spec.rb @@ -73,7 +73,7 @@ describe Utils::Shell do specify "::csh_quote" do expect(subject.send(:csh_quote, "")).to eq("''") expect(subject.send(:csh_quote, "\\")).to eq("\\\\") - # note this test is different than for sh + # NOTE: this test is different than for sh expect(subject.send(:csh_quote, "\n")).to eq("'\\\n'") expect(subject.send(:csh_quote, "$")).to eq("\\$") expect(subject.send(:csh_quote, "word")).to eq("word")