Skip to content

Commit 3d849f0

Browse files
praserxCopilot
andauthored
chore: fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9bad9c1 commit 3d849f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (a *AtomicCache) Set(key string, data []byte, expire time.Duration) error {
205205
a.Unlock()
206206
} else {
207207
// Key exists in same section: update existing record.
208-
// Explaination: If the record size is the same, we can simply update the existing record
208+
// Explanation: If the record size is the same, we can simply update the existing record
209209
// in the same shard section without needing to free it first.
210210
// This is more efficient as it avoids unnecessary memory allocation and deallocation.
211211
// This is a performance optimization to avoid unnecessary memory allocation and deallocation.

0 commit comments

Comments
 (0)