Skip to content

Commit 5333a1e

Browse files
authoredApr 10, 2024··
chore: fix function names in comment (#6354)
Signed-off-by: loselarry <bikangning@yeah.net>
1 parent a931b61 commit 5333a1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎internal/controllers/indexer/indexer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (m *Indexer) Enqueue(ctx context.Context, obj client.Object) []reconcile.Re
8888
return m.EnqueueKey(key)
8989
}
9090

91-
// Enqueue() when we don't have the full object, only the name and kind.
91+
// EnqueueKey() when we don't have the full object, only the name and kind.
9292
func (m *Indexer) EnqueueKey(key Key) []reconcile.Request {
9393
m.mu.Lock()
9494
defer m.mu.Unlock()

‎internal/ospath/ospath.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func Child(dir string, file string) (string, bool) {
7878
}
7979
}
8080

81-
// IsChildOfOne returns true if the given file is a child of the given directory
81+
// IsChild returns true if the given file is a child of the given directory
8282
func IsChild(dir string, file string) bool {
8383
_, ret := Child(dir, file)
8484
return ret

0 commit comments

Comments
 (0)
Please sign in to comment.