aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-30 10:00:55 +0100
committerGravatar Runxi Yu2026-01-30 10:00:55 +0100
commitf44d25efe89148b7c7c50444da692fa7d93fe5f2 (patch)
tree7231796fb2057d668a98bdd5fc87ad51c5c62a60
parentREADME: Simplify architectual considerations section (diff)
signatureNo signature
diffbytes: Add comments for BytesDiffChunkKind enums
-rw-r--r--diffbytes.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/diffbytes.go b/diffbytes.go
index e92e3d5f..2698bf55 100644
--- a/diffbytes.go
+++ b/diffbytes.go
@@ -213,7 +213,10 @@ type BytesDiffChunk struct {
type BytesDiffChunkKind int
const (
+ // BytesDiffChunkKindUnchanged represents an unchanged diff chunk.
BytesDiffChunkKindUnchanged BytesDiffChunkKind = iota
+ // BytesDiffChunkKindDeleted represents a deleted diff chunk.
BytesDiffChunkKindDeleted
+ // BytesDiffChunkKindAdded represents an added diff chunk.
BytesDiffChunkKindAdded
)