From 62ecd439e2390dae3fbe282b2886781576074928 Mon Sep 17 00:00:00 2001
From: Adam Hughes <9903835+tri-adam@users.noreply.github.com>
Date: Mon, 22 Jul 2024 16:28:14 +0000
Subject: [PATCH] docs: improve SquashSubset index documentation

---
 pkg/mutate/squash.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/mutate/squash.go b/pkg/mutate/squash.go
index 7122c03..596cddf 100644
--- a/pkg/mutate/squash.go
+++ b/pkg/mutate/squash.go
@@ -298,8 +298,8 @@ func Squash(base v1.Image) (v1.Image, error) {
 	return squashSelected(base, nil)
 }
 
-// SquashSubset replaces the layers starting at start index and up to end index with a single,
-// squashed layer.
+// SquashSubset replaces the layers starting at start index and up to (but not including) end index
+// with a single, squashed layer.
 func SquashSubset(base v1.Image, start, end int) (v1.Image, error) {
 	return squashSelected(base, rangeLayerSelector(start, end))
 }