Skip to content

Commit 55d33a0

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

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
@@ -221,7 +221,7 @@ func (a *AtomicCache) Set(key string, data []byte, expire time.Duration) error {
221221
a.Lock()
222222
if si, ok := a.getShard(shardSectionID); ok {
223223
// Found shard with available slot.
224-
// Explaination: If we found a shard with available space, we can simply set the data
224+
// Explanation: If we found a shard with available space, we can simply set the data
225225
// in that shard and update the lookup table with the new record index.
226226
// This avoids unnecessary memory allocation and deallocation, improving performance.
227227
ri := shardSection.shards[si].Set(data)

0 commit comments

Comments
 (0)