Skip to content

Commit a227151

Browse files
anayiniaciidgh
authored andcommitted
Fix typo
1 parent 84a5bc7 commit a227151

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/PackageGraph/PackageGraphLoader.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private func createResolvedPackages(
198198
let package = packageBuilder.package
199199

200200
// The diagnostics location for this package.
201-
let diagnosicLocation = { PackageLocation.Local(name: package.name, packagePath: package.path) }
201+
let diagnosticLocation = { PackageLocation.Local(name: package.name, packagePath: package.path) }
202202

203203
// Get all the system module dependencies in this package.
204204
let systemModulesDeps = packageBuilder.dependencies
@@ -216,7 +216,7 @@ private func createResolvedPackages(
216216
// If a target with similar name was encountered before, we emit a diagnostic.
217217
let targetName = targetBuilder.target.name
218218
if allTargetNames.contains(targetName) {
219-
diagnostics.emit(ModuleError.duplicateModule(targetName), location: diagnosicLocation())
219+
diagnostics.emit(ModuleError.duplicateModule(targetName), location: diagnosticLocation())
220220
}
221221
allTargetNames.insert(targetName)
222222

@@ -233,7 +233,7 @@ private func createResolvedPackages(
233233
// Find the product in this package's dependency products.
234234
guard let product = productDependencyMap[productRef.name] else {
235235
let error = PackageGraphError.productDependencyNotFound(name: productRef.name, package: productRef.package)
236-
diagnostics.emit(error, location: diagnosicLocation())
236+
diagnostics.emit(error, location: diagnosticLocation())
237237
continue
238238
}
239239

@@ -244,7 +244,7 @@ private func createResolvedPackages(
244244
guard let dependencyPackage = packageMap[packageName.lowercased()], dependencyPackage.products.contains(product) else {
245245
let error = PackageGraphError.productDependencyIncorrectPackage(
246246
name: productRef.name, package: packageName)
247-
diagnostics.emit(error, location: diagnosicLocation())
247+
diagnostics.emit(error, location: diagnosticLocation())
248248
continue
249249
}
250250
}

Sources/Utility/Diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct AnyDiagnostic: DiagnosticData {
3434
}
3535
}
3636

37-
/// Represents unknown diagnosic location.
37+
/// Represents unknown diagnostic location.
3838
public final class UnknownLocation: DiagnosticLocation {
3939

4040
/// The singleton instance.

0 commit comments

Comments
 (0)