Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit c521aea

Browse files
creachadairbzz
andauthored
review: update godoc
Co-Authored-By: bzz <[email protected]>
1 parent 8c08ccf commit c521aea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/normalizer/strconv.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ func contains(s string, c byte) bool {
6060
return strings.IndexByte(s, c) >= 0
6161
}
6262

63-
// replaceEscapedMaybe returns a copy of s with "\\old[^0-9]" replaced by new.
63+
// replaceEscapedMaybe returns a copy of s in which occurrences of old followed by a
64+
// non-digit are replaced by repl.
6465
// Is not part of the stdlib, handles the special case of JS escape sequence.
6566
func replaceEscapedMaybe(s, old, repl string) string {
6667
var out strings.Builder

0 commit comments

Comments
 (0)