Skip to content

fix: fix various typos#29

Merged
swiftty merged 3 commits into
mainfrom
fix/typos
May 13, 2026
Merged

fix: fix various typos#29
swiftty merged 3 commits into
mainfrom
fix/typos

Conversation

@swiftty
Copy link
Copy Markdown
Owner

@swiftty swiftty commented May 13, 2026

Summary

  • Fix typo onMemery to onMemory in Cache.swift
  • Fix typo peformChange to performChange in DiskCache.swift
  • Fix typo Entiries to Entries in LRUCache.swift

Test plan

  • Run swift test and verify all tests pass.

🤖 Generated with Claude Code

- onMemery -> onMemory in Cache.swift
- peformChange -> performChange in DiskCache.swift
- Entiries -> Entries in LRUCache.swift

---
Generated-by: google/gemma-4-26b-a4b
Co-authored-by: Claude <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects several typos in variable and method names across the codebase, including renaming 'onMemery' to 'onMemory' and 'peformChange' to 'performChange'. Feedback from the reviewer highlights a critical issue where the 'await' keyword is incorrectly used alongside 'async let' declarations in 'Cache.swift', which will cause compiler errors. Code suggestions were provided to resolve these syntax issues.

Comment thread Sources/DataCacheKit/Cache.swift Outdated
queueingTask.enqueueAndReplacing { [weak self] in
guard let self else { return }
async let memory: Void = await onMemery.store(value, for: key).value
async let memory: Void = await onMemory.store(value, for: key).value
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The await keyword should not be used on the right-hand side of an async let declaration. The asynchronous nature of the expression is already implied by async let. Using await here will result in a compiler error.

Note: This issue also exists on line 72, which is not part of the current changes.

Suggested change
async let memory: Void = await onMemory.store(value, for: key).value
async let memory: Void = onMemory.store(value, for: key).value

Comment thread Sources/DataCacheKit/Cache.swift Outdated
queueingTask.enqueueAndReplacing { [weak self] in
guard let self else { return }
async let memory: Void = await onMemery.remove(for: key).value
async let memory: Void = await onMemory.remove(for: key).value
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The await keyword should not be used on the right-hand side of an async let declaration. The asynchronous nature of the expression is already implied by async let. Using await here will result in a compiler error.

Note: This issue also exists on line 91, which is not part of the current changes.

Suggested change
async let memory: Void = await onMemory.remove(for: key).value
async let memory: Void = onMemory.remove(for: key).value

Comment thread Sources/DataCacheKit/Cache.swift Outdated
queueingTask.enqueueAndReplacing { [weak self] in
guard let self else { return }
async let memory: Void = await onMemery.removeAll().value
async let memory: Void = await onMemory.removeAll().value
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The await keyword should not be used on the right-hand side of an async let declaration. The asynchronous nature of the expression is already implied by async let. Using await here will result in a compiler error.

Note: This issue also exists on line 110, which is not part of the current changes.

Suggested change
async let memory: Void = await onMemory.removeAll().value
async let memory: Void = onMemory.removeAll().value

swiftty and others added 2 commits May 13, 2026 11:13
- sweeped -> swept in DiskCache.swift

---
Generated-by: google/gemma-4-26b-a4b
Co-authored-by: Claude <noreply@anthropic.com>
@swiftty swiftty merged commit 800489f into main May 13, 2026
1 check passed
@swiftty swiftty deleted the fix/typos branch May 13, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant