From 5a0e70133a91536199118138dd47b922a2265af5 Mon Sep 17 00:00:00 2001 From: lvyaoting Date: Thu, 5 Dec 2024 21:41:09 +0800 Subject: [PATCH] chore: fix some function name in comment Signed-off-by: lvyaoting --- cache/refs.go | 2 +- util/system/path_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/refs.go b/cache/refs.go index aa2a47256def..0cf30737abc0 100644 --- a/cache/refs.go +++ b/cache/refs.go @@ -655,7 +655,7 @@ func (sr *immutableRef) Clone() ImmutableRef { return sr.clone() } -// layertoDistributable changes the passed in media type to the "distributable" version of the media type. +// layerToDistributable changes the passed in media type to the "distributable" version of the media type. func layerToDistributable(mt string) string { if !images.IsNonDistributable(mt) { // Layer is already a distributable media type (or this is not even a layer). diff --git a/util/system/path_test.go b/util/system/path_test.go index c8d97c72d5ed..086c63a34480 100644 --- a/util/system/path_test.go +++ b/util/system/path_test.go @@ -165,7 +165,7 @@ func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) { } } -// TestNormalizeWorkdir tests NormalizeWorkdir +// TestNormalizeWorkdirWindows tests NormalizeWorkdir func TestNormalizeWorkdirWindows(t *testing.T) { testCases := []struct { name string