Skip to content

Commit a18aa0e

Browse files
sivcharigopherbot
authored andcommitted
all: gofmt
These files are not formatted by gofmt. Thus, run gofmt to format them. Change-Id: Iea9650e64b1f47cf82739f3a8a34f47740a96455 Reviewed-on: https://go-review.googlesource.com/c/go/+/570398 Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent d85d11f commit a18aa0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/html/template/transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) {
414414
// If "</script" appears in a regex literal, the '/' should not
415415
// close the regex literal, and it will later be escaped to
416416
// "\x3C/script" in escapeText.
417-
if i > 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1 : i+7]), []byte("</script")) {
417+
if i > 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1:i+7]), []byte("</script")) {
418418
i++
419419
} else if !inCharset {
420420
c.state, c.jsCtx = stateJS, jsCtxDivOp

src/net/netip/slow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func parseIPv4Slow(s string) (Addr, error) {
182182
// parseWord converts a 16-bit hex string into its corresponding
183183
// two-byte value.
184184
func parseWord(s string) (byte, byte, error) {
185-
if(len(s) > 4) {
185+
if len(s) > 4 {
186186
return 0, 0, fmt.Errorf("parseWord(%q): invalid word", s)
187187
}
188188
ret, err := strconv.ParseUint(s, 16, 16)

0 commit comments

Comments
 (0)