Skip to content

Commit

Permalink
Fixes typos
Browse files Browse the repository at this point in the history
  • Loading branch information
joumanae authored and bitfield committed Sep 15, 2023
1 parent 93f3568 commit 09a0158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ func (p *Pipe) Replace(search, replace string) *Pipe {
}

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

0 comments on commit 09a0158

Please sign in to comment.