Skip to content

Commit d8d9a90

Browse files
committed
fixes compatibility issue mb0#3.
slicing the capacity is not really important here.
1 parent 5441ebd commit d8d9a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func Granular(granularity int, changes []Change) []Change {
7171
}
7272
changes[i-gap] = curr
7373
}
74-
return changes[:len(changes)-gap : len(changes)-gap]
74+
return changes[:len(changes)-gap]
7575
}
7676

7777
// Diff returns the differences of data.

0 commit comments

Comments
 (0)