summaryrefslogtreecommitdiff
path: root/src/internal/diff/diff.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-05-18 16:46:20 -0400
committerGopher Robot <gobot@golang.org>2022-05-19 15:49:05 +0000
commit946b4baaf6521d521928500b2b57429c149854e7 (patch)
tree4acad539bb1fb52aab5112fb664365ea003c8dd4 /src/internal/diff/diff.go
parente23cc0844d542688c0956900206fca7c602593c5 (diff)
downloadgo-git-946b4baaf6521d521928500b2b57429c149854e7.tar.gz
all: gofmt main repo
Excluding vendor and testdata. CL 384268 already reformatted most, but these slipped past. The struct in the doc comment in debug/dwarf/type.go was fixed up by hand to indent the first and last lines as well. For #51082. Change-Id: Iad020f83aafd671ff58238fe491907e85923d0c7 Reviewed-on: https://go-review.googlesource.com/c/go/+/407137 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/internal/diff/diff.go')
-rw-r--r--src/internal/diff/diff.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/internal/diff/diff.go b/src/internal/diff/diff.go
index e2c9e4dc65..47b2856714 100644
--- a/src/internal/diff/diff.go
+++ b/src/internal/diff/diff.go
@@ -43,7 +43,6 @@ type pair struct{ x, y int }
// Second, the name is frequently interpreted as meaning that you have
// to wait longer (to be patient) for the diff, meaning that it is a slower algorithm,
// when in fact the algorithm is faster than the standard one.
-//
func Diff(oldName string, old []byte, newName string, new []byte) []byte {
if bytes.Equal(old, new) {
return nil