From e567d7f595eeed6e2bc4e905e45ddc7b7817bc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Tue, 19 Oct 2021 13:20:16 -0700 Subject: [PATCH] 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. --- docs/Formula-Cookbook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index 81e30f56a0..43bf92ad2c 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -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 ```