Skip to content

Commit 09a0158

Browse files
joumanaebitfield
authored andcommitted
Fixes typos
1 parent 93f3568 commit 09a0158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,8 @@ func (p *Pipe) Replace(search, replace string) *Pipe {
731731
}
732732

733733
// ReplaceRegexp replaces all matches of the compiled regexp re with the string
734-
// re. $x variables in the replace string are interpreted as by
735-
// [regexp.Expand]; for example, $1 represents the text of the first submatch.
734+
// replace. $x variables in the replace string are interpreted as by
735+
// [regexp#Regexp.Expand]; for example, $1 represents the text of the first submatch.
736736
func (p *Pipe) ReplaceRegexp(re *regexp.Regexp, replace string) *Pipe {
737737
return p.FilterLine(func(line string) string {
738738
return re.ReplaceAllString(line, replace)

0 commit comments

Comments
 (0)