Update Formula-Cookbook.md gsub! example

The use of a naked expression will trigger errors from `brew audit` so use instead parenthesis around the parameters as per its recommendation and to avoid ambiguous syntax.
This commit is contained in:
Carlo Marcelo Arenas Belón 2021-10-19 13:20:16 -07:00 committed by GitHub
parent 810992a0b5
commit e567d7f595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,7 +441,7 @@ inreplace "path", before, after
```ruby ```ruby
inreplace "path" do |s| inreplace "path" do |s|
s.gsub! /foo/, "bar" s.gsub!(/foo/, "bar")
s.gsub! "123", "456" s.gsub! "123", "456"
end end
``` ```