From a6ce1a799594880fa15a9c226151575ccdc4118d Mon Sep 17 00:00:00 2001
From: closeobserve <pingcap@yahoo.com>
Date: Sun, 13 Apr 2025 17:40:27 +0800
Subject: [PATCH] chore: make function comment match function name

Signed-off-by: closeobserve <pingcap@yahoo.com>
---
 registry/storage/blobwriter_nonresumable.go                 | 2 +-
 registry/storage/driver/azure/retry_notification_policy.go  | 2 +-
 registry/storage/driver/middleware/cloudfront/middleware.go | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/registry/storage/blobwriter_nonresumable.go b/registry/storage/blobwriter_nonresumable.go
index b3b3f6abe..bb2f7789a 100644
--- a/registry/storage/blobwriter_nonresumable.go
+++ b/registry/storage/blobwriter_nonresumable.go
@@ -7,7 +7,7 @@ import (
 	"context"
 )
 
-// resumeHashAt is a noop when resumable digest support is disabled.
+// resumeDigest is a noop when resumable digest support is disabled.
 func (bw *blobWriter) resumeDigest(ctx context.Context) error {
 	return errResumableDigestNotAvailable
 }
diff --git a/registry/storage/driver/azure/retry_notification_policy.go b/registry/storage/driver/azure/retry_notification_policy.go
index 4e97970a1..3276df112 100644
--- a/registry/storage/driver/azure/retry_notification_policy.go
+++ b/registry/storage/driver/azure/retry_notification_policy.go
@@ -35,7 +35,7 @@ func withTimeoutNotification(ctx context.Context, timeout *bool) context.Context
 	return context.WithValue(ctx, timeoutNotifyContextKey, timeout)
 }
 
-// withRetryNotifier returns a context that contains a retry notifier. The
+// withRetryNotification returns a context that contains a retry notifier. The
 // retryNotificationPolicy will then invoke the callback when a retry happens
 func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point
 	return context.WithValue(ctx, retryNotifyContextKey, r)
diff --git a/registry/storage/driver/middleware/cloudfront/middleware.go b/registry/storage/driver/middleware/cloudfront/middleware.go
index 4e5f32d75..130827a40 100644
--- a/registry/storage/driver/middleware/cloudfront/middleware.go
+++ b/registry/storage/driver/middleware/cloudfront/middleware.go
@@ -40,7 +40,7 @@ type cloudFrontStorageMiddleware struct {
 
 var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{}
 
-// newCloudFrontLayerHandler constructs and returns a new CloudFront
+// newCloudFrontStorageMiddleware constructs and returns a new CloudFront
 // LayerHandler implementation.
 //
 // Required options: