format note comments

This commit is contained in:
Rylan Polster 2020-11-13 09:49:06 -05:00 committed by Markus Reiter
parent 7fb1e8be87
commit dda0dc72a7
3 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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) }

View File

@ -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")