From 723a68c3d97c864451612c50edcfd33d0ca63390 Mon Sep 17 00:00:00 2001 From: Jon Johnson Date: Wed, 15 Jan 2020 13:28:57 -0800 Subject: [PATCH] fix typo --- pkg/v1/partial/with.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/v1/partial/with.go b/pkg/v1/partial/with.go index 8379c3706..08bdce3e0 100644 --- a/pkg/v1/partial/with.go +++ b/pkg/v1/partial/with.go @@ -359,7 +359,7 @@ func UncompressedSize(l v1.Layer) (int64, error) { } // Otherwise, try to unwrap any partial implementations to see - // if the wrapped struct implements CompressedSize. + // if the wrapped struct implements UncompressedSize. if ule, ok := l.(*uncompressedLayerExtender); ok { if wus, ok := ule.UncompressedLayer.(withUncompressedSize); ok { return wus.UncompressedSize() @@ -371,7 +371,7 @@ func UncompressedSize(l v1.Layer) (int64, error) { } } - // The layer doens't implement CompressedSize, we need to compute it. + // The layer doesn't implement UncompressedSize, we need to compute it. rc, err := l.Uncompressed() if err != nil { return -1, err