Skip to content

Commit 27589fc

Browse files
Sajjonintitni
authored andcommitted
chore: Fix some typos
1 parent 2077371 commit 27589fc

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

Copilot for Xcode.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@
775775
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
776776
ENABLE_HARDENED_RUNTIME = YES;
777777
INFOPLIST_FILE = EditorExtension/Info.plist;
778-
INFOPLIST_KEY_CFBundleDisplayName = "$(EXTESNION_BUNDLE_NAME)";
778+
INFOPLIST_KEY_CFBundleDisplayName = "$(EXTENSION_BUNDLE_NAME)";
779779
INFOPLIST_KEY_NSHumanReadableCopyright = "";
780780
LD_RUNPATH_SEARCH_PATHS = (
781781
"$(inherited)",
@@ -803,7 +803,7 @@
803803
DEVELOPMENT_TEAM = 5YKZ4Y3DAW;
804804
ENABLE_HARDENED_RUNTIME = YES;
805805
INFOPLIST_FILE = EditorExtension/Info.plist;
806-
INFOPLIST_KEY_CFBundleDisplayName = "$(EXTESNION_BUNDLE_NAME)";
806+
INFOPLIST_KEY_CFBundleDisplayName = "$(EXTENSION_BUNDLE_NAME)";
807807
INFOPLIST_KEY_NSHumanReadableCopyright = "";
808808
LD_RUNPATH_SEARCH_PATHS = (
809809
"$(inherited)",

Core/Sources/XcodeThemeController/XcodeThemeParser.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct XcodeThemeParser {
113113
guard let theme = plist else { throw Error.invalidData }
114114

115115
/// The source value is an `r g b a` string, for example: `0.5 0.5 0.2 1`
116-
func converColor(source: String) -> XcodeTheme.ThemeColor {
116+
func convertColor(source: String) -> XcodeTheme.ThemeColor {
117117
let components = source.split(separator: " ")
118118
let red = (components[0] as NSString).doubleValue
119119
let green = (components[1] as NSString).doubleValue
@@ -136,7 +136,7 @@ struct XcodeThemeParser {
136136
currentDict = value
137137
}
138138
if let value = currentDict[path.last!] as? String {
139-
return converColor(source: value)
139+
return convertColor(source: value)
140140
}
141141
return defaultValue
142142
}

Tool/Sources/FileSystem/ByteString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ extension ByteString: ByteStreamable {
143143
}
144144
}
145145

146-
/// StringLiteralConvertable conformance for a ByteString.
146+
/// StringLiteralConvertible conformance for a ByteString.
147147
extension ByteString: ExpressibleByStringLiteral {
148148
public typealias UnicodeScalarLiteralType = StringLiteralType
149149
public typealias ExtendedGraphemeClusterLiteralType = StringLiteralType

Tool/Sources/FileSystem/Lock.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
public enum ProcessLockError: Error {
4-
case unableToAquireLock(errno: Int32)
4+
case unableToAcquireLock(errno: Int32)
55
}
66

77
extension ProcessLockError: CustomNSError {
@@ -42,7 +42,7 @@ public final class FileLock {
4242
self.init(at: cachePath.appending(component: name + ".lock"))
4343
}
4444

45-
/// Try to acquire a lock. This method will block until lock the already aquired by other process.
45+
/// Try to acquire a lock. This method will block until lock the already acquired by other process.
4646
///
4747
/// Note: This method can throw if underlying POSIX methods fail.
4848
public func lock(type: LockType = .exclusive, blocking: Bool = true) throws {
@@ -78,7 +78,7 @@ public final class FileLock {
7878
}
7979
if !LockFileEx(handle, DWORD(dwFlags), 0,
8080
UInt32.max, UInt32.max, &overlapped) {
81-
throw ProcessLockError.unableToAquireLock(errno: Int32(GetLastError()))
81+
throw ProcessLockError.unableToAcquireLock(errno: Int32(GetLastError()))
8282
}
8383
#else
8484
// Open the lock file.
@@ -97,14 +97,14 @@ public final class FileLock {
9797
if !blocking {
9898
flags |= LOCK_NB
9999
}
100-
// Aquire lock on the file.
100+
// Acquire lock on the file.
101101
while true {
102102
if flock(fileDescriptor!, flags) == 0 {
103103
break
104104
}
105105
// Retry if interrupted.
106106
if errno == EINTR { continue }
107-
throw ProcessLockError.unableToAquireLock(errno: errno)
107+
throw ProcessLockError.unableToAcquireLock(errno: errno)
108108
}
109109
#endif
110110
}

Tool/Sources/FileSystem/Path.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ extension AbsolutePath {
898898
public func relative(to base: AbsolutePath) -> RelativePath {
899899
let result: RelativePath
900900
// Split the two paths into their components.
901-
// FIXME: The is needs to be optimized to avoid unncessary copying.
901+
// FIXME: The is needs to be optimized to avoid unnecessary copying.
902902
let pathComps = self.components
903903
let baseComps = base.components
904904

Tool/Sources/FileSystem/WritableByteStream.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
/// Closable entity is one that manages underlying resources and needs to be closed for cleanup
12-
/// The intent of this method is for the sole owner of the refernece/handle of the resource to close it completely, comapred to releasing a shared resource.
12+
/// The intent of this method is for the sole owner of the refernece/handle of the resource to close it completely, compared to releasing a shared resource.
1313
public protocol Closable {
1414
func close() throws
1515
}
@@ -156,7 +156,7 @@ extension WritableByteStream {
156156

157157
// MARK: helpers that return `self`
158158

159-
// FIXME: This override shouldn't be necesary but removing it causes a 30% performance regression. This problem is
159+
// FIXME: This override shouldn't be necessary but removing it causes a 30% performance regression. This problem is
160160
// tracked by the following bug: https://bugs.swift.org/browse/SR-8535
161161
@discardableResult
162162
public func send(_ value: ArraySlice<UInt8>) -> WritableByteStream {
@@ -408,7 +408,7 @@ precedencegroup StreamingPrecedence {
408408

409409
// MARK: Output Operator Implementations
410410

411-
// FIXME: This override shouldn't be necesary but removing it causes a 30% performance regression. This problem is
411+
// FIXME: This override shouldn't be necessary but removing it causes a 30% performance regression. This problem is
412412
// tracked by the following bug: https://bugs.swift.org/browse/SR-8535
413413

414414
@available(*, deprecated, message: "use send(_:) function on WritableByteStream instead")

Tool/Sources/FocusedCodeFinder/ObjectiveC/ObjectiveCSyntax.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ enum ObjectiveCNodeType: String {
7575
/// `__GENERICS` in category interface and implementation.
7676
case genericsTypeReference = "generics_type_reference"
7777
/// `IB_DESIGNABLE`, etc. The typo is from the original source.
78-
case classInterfaceAttributeSpecifier = "class_interface_attribute_sepcifier"
78+
case classInterfaceAttributeSpecifier = "class_interface_attribute_specifier"
7979
}
8080

8181
extension ObjectiveCNodeType {

Tool/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ public struct SuggestionInjector {
216216

217217
public struct SuggestionAnalyzer {
218218
struct Result {
219-
enum InsertPostion {
219+
enum InsertPosition {
220220
case currentLine
221221
case nextLine
222222
}
223223

224-
var insertPosition: InsertPostion
224+
var insertPosition: InsertPosition
225225
var commonPrefix: String?
226226
}
227227

Tool/Tests/FocusedCodeFinderTests/SwiftFocusedCodeFinderTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
220220

221221
func test_selecting_a_static_function_from_an_actor_the_scope_should_be_the_actor() {
222222
let code = """
223-
@gloablActor
223+
@globalActor
224224
public actor A {
225225
static func f() {}
226226
static func g() {}
@@ -240,7 +240,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
240240
XCTAssertEqual(context, .init(
241241
scope: .scope(signature: [
242242
.init(
243-
signature: "@gloablActor public actor A",
243+
signature: "@globalActor public actor A",
244244
name: "A",
245245
range: .init(startPair: (0, 0), endPair: (7, 1))
246246
),

Tool/Tests/SuggestionBasicTests/TextExtrationFromCodeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22
import XCTest
33
@testable import SuggestionBasic
44

5-
final class TextExtrationFromCodeTests: XCTestCase {
5+
final class TextExtractionFromCodeTests: XCTestCase {
66
func test_empty_selection() {
77
let selection = CursorRange(
88
start: CursorPosition(line: 0, character: 0),

0 commit comments

Comments
 (0)