Skip to content

Commit 61c1351

Browse files
authored
[SWBCore] Enhance LibSwiftDriver quality (swiftlang#54)
* fix: job key indices * docs: fix `output` spelling a comment
1 parent ed8a8f9 commit 61c1351

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SWBCore/LibSwiftDriver/LibSwiftDriver.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private struct GlobalExplicitDepependencyTracker {
6161
producerMap: inout [Path: LibSwiftDriver.JobKey]) throws -> Set<LibSwiftDriver.JobKey> {
6262
// Filter out "new" unique jobs and populate the `producerMap`
6363
var jobKeys: Set<LibSwiftDriver.JobKey> = []
64-
var jobKeyIndeces: [(Int, LibSwiftDriver.JobIndex)] = []
64+
var jobKeyIndices: [(Int, LibSwiftDriver.JobIndex)] = []
6565
for (index, job) in jobs.enumerated() {
6666
guard case let .explicitModule(uniqueID) = job.kind else {
6767
throw StubError.error("Unexpected job in explicit module builds: \(job.descriptionForLifecycle).")
@@ -73,13 +73,13 @@ private struct GlobalExplicitDepependencyTracker {
7373
} else {
7474
trackerIndex = nextIndex
7575
nextIndex = nextIndex + 1
76-
jobKeyIndeces.append((index, trackerIndex))
76+
jobKeyIndices.append((index, trackerIndex))
7777
}
7878
try LibSwiftDriver.PlannedBuild.addProducts(of: job, index: .explicitDependencyJob(trackerIndex), knownJobs: [], to: &producerMap)
7979
}
8080

8181
// Once the producerMap has been populated, create the actual PlannedDriverJobs
82-
for (jobIndex, trackerIndex) in jobKeyIndeces {
82+
for (jobIndex, trackerIndex) in jobKeyIndices {
8383
let job = jobs[jobIndex]
8484
guard case let .explicitModule(uniqueID) = job.kind else {
8585
throw StubError.error("Unexpected job in explicit module builds: \(job.descriptionForLifecycle).")
@@ -639,7 +639,7 @@ public final class SwiftCachedCompilation {
639639
}
640640
}
641641

642-
/// SwiftCachedOuput wraps CachedOutput from SwiftDriver
642+
/// SwiftCachedOutput wraps CachedOutput from SwiftDriver
643643
public final class SwiftCachedOutput {
644644
let cachedOutput: CachedOutput
645645

0 commit comments

Comments
 (0)