Skip to content

Commit 65eb9d1

Browse files
committed
Fixes typos.
1 parent 4accae6 commit 65eb9d1

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

SystemCharacterInfo/Package.resolved

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SystemCharacterInfo/Sources/SystemCharacterInfo/SystemCharacterInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Foundation
2828
private let path = "/System/Library/PrivateFrameworks/CoreChineseEngine.framework/Versions/A/Resources/CharacterAccessibilityData.sqlite"
2929

3030
public struct CharacterInfo {
31-
public let cheracter: String?
31+
public let character: String?
3232
public let components: String?
3333
public let simplifiedExample: String?
3434
public let traditionalExample: String?
@@ -67,7 +67,7 @@ public class SystemCharacterInfo {
6767
let ZCHARACTER = Expression<String?>("ZCHARACTER")
6868

6969
return CharacterInfo(
70-
cheracter: try? row.get(ZCHARACTER),
70+
character: try? row.get(ZCHARACTER),
7171
components: try? row.get(ZCOMPONENTS),
7272
simplifiedExample: try? row.get(ZSIMPLIFIEDEXEMPLAR),
7373
traditionalExample: try? row.get(ZTRADITIONALEXEMPLAR)

SystemCharacterInfo/Tests/SystemCharacterInfoTests/SystemCharacterInfoTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ import Testing
2828
@Test func example() async throws {
2929
let info = try SystemCharacterInfo()
3030
let result = try info.read(string: "")
31-
#expect(result.cheracter == "")
31+
#expect(result.character == "")
3232
#expect(result.components == "火登")
3333
}

0 commit comments

Comments
 (0)