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
+1 -1
View File
@@ -441,7 +441,7 @@ inreplace "path", before, after
```ruby
inreplace "path" do |s|
s.gsub! /foo/, "bar"
s.gsub!(/foo/, "bar")
s.gsub! "123", "456"
end
```