aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMarkus Reiter2017-09-10 23:11:01 +0200
committerGitHub2017-09-10 23:11:01 +0200
commit5bcce735ddd7b68da6bde7dec6ca318c7801aade (patch)
tree20b7d0be969e3f9346c1cc3ac0c46660316f4c03 /Library/Homebrew/extend
parent8f8f0f0a9efb7e73d2d12c05f5086f65fabe579d (diff)
parent8e4150b20b811175d4778ec73f3018b8ef878742 (diff)
downloadbrew-5bcce735ddd7b68da6bde7dec6ca318c7801aade.tar.bz2
Merge pull request #3143 from jsoref/spelling
Spelling
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
-rw-r--r--Library/Homebrew/extend/string.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index c6cb54f5d..daa5306fa 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -147,7 +147,7 @@ module HomebrewArgvExtension
flag_with_value.strip_prefix(arg_prefix) if flag_with_value
end
- # Returns an array of values that were given as a comma-seperated list.
+ # Returns an array of values that were given as a comma-separated list.
# @see value
def values(name)
return unless val = value(name)
diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb
index ae7a209db..b96f12994 100644
--- a/Library/Homebrew/extend/string.rb
+++ b/Library/Homebrew/extend/string.rb
@@ -60,7 +60,7 @@ module StringInreplaceExtension
result
end
- # Looks for Makefile style variable defintions and replaces the
+ # Looks for Makefile style variable definitions and replaces the
# value with "new_value", or removes the definition entirely.
def change_make_var!(flag, new_value)
return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false)