spelling: definitions

This commit is contained in:
Josh Soref 2017-09-10 16:31:02 +00:00
parent 7b1cf6df5a
commit 08e53870a6

View File

@ -60,7 +60,7 @@ module StringInreplaceExtension
result result
end 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. # value with "new_value", or removes the definition entirely.
def change_make_var!(flag, new_value) def change_make_var!(flag, new_value)
return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false) return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false)