Skip to content

Commit e2fdda6

Browse files
authored
Merge pull request swiftlang#4 from danielmartin/fix-typo
Fix typo
2 parents 0aff320 + 809423f commit e2fdda6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SKCore/ToolchainRegistry.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ extension ToolchainRegistry {
140140
AbsolutePath("/Library/Developer/Toolchains"),
141141
]
142142

143-
var currentXodeDeveloperPath: AbsolutePath? {
143+
var currentXcodeDeveloperPath: AbsolutePath? {
144144
if let str = try? Process.checkNonZeroExit(args: "/usr/bin/xcode-select", "-p"), let path = try? AbsolutePath(validating: str.chomp()) {
145145
return path
146146
}
@@ -149,7 +149,7 @@ extension ToolchainRegistry {
149149

150150
private func scanForToolchainsDarwin() {
151151
// Try to find the current Xcode's toolchains using `xcode-select -p`
152-
if let path = currentXodeDeveloperPath {
152+
if let path = currentXcodeDeveloperPath {
153153
scanForXCToolchains(path.appending(components: "Toolchains"))
154154
}
155155

Tests/SKCoreTests/ToolchainRegistryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ final class ToolchainRegistryTests: XCTestCase {
5757
let fs = InMemoryFileSystem()
5858
let tr = ToolchainRegistry(fileSystem: fs)
5959

60-
let xcodeDeveloper = tr.currentXodeDeveloperPath!
60+
let xcodeDeveloper = tr.currentXcodeDeveloperPath!
6161
let toolchains = xcodeDeveloper.appending(components: "Toolchains")
6262

6363
let makeToolchain = { (id: String, opensource: Bool, path: AbsolutePath) in

0 commit comments

Comments
 (0)