Skip to content

Commit

Permalink
docs: improve SquashSubset index documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tri-adam committed Jul 22, 2024
1 parent 927223d commit 62ecd43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mutate/squash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 62ecd43

Please sign in to comment.