Skip to content

Commit dc4ca36

Browse files
committed
ran gofmt
1 parent 9c5e7ff commit dc4ca36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diffmatchpatch/dmp.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Operation int8
3838
const (
3939
DiffDelete Operation = -1
4040
DiffInsert Operation = 1
41-
DiffEqual Operation = 0
41+
DiffEqual Operation = 0
4242
)
4343

4444
// unescaper unescapes selected chars for compatability with JavaScript's encodeURI.
@@ -751,9 +751,9 @@ func (dmp *DiffMatchPatch) diffHalfMatchI(l string, s string, i int) []string {
751751

752752
if len(best_common) < suffixLength+prefixLength {
753753
best_common = s[j-suffixLength:j] + s[j:j+prefixLength]
754-
best_longtext_a = l[: i-suffixLength]
754+
best_longtext_a = l[:i-suffixLength]
755755
best_longtext_b = l[i+prefixLength:]
756-
best_shorttext_a = s[: j-suffixLength]
756+
best_shorttext_a = s[:j-suffixLength]
757757
best_shorttext_b = s[j+prefixLength:]
758758
}
759759

0 commit comments

Comments
 (0)