Skip to content

Commit b84a6c1

Browse files
committed
Merge pull request #279 from aciidb0mb3r/typos
[pkgconfig] fix typos
2 parents 77d1134 + 6f48544 commit b84a6c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Build/PkgConfig.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct PkgConfigParser {
109109
let value = line[equalsIndex.successor()..<line.endIndex]
110110
variables[name] = try resolveVariables(value)
111111
} else {
112-
// Unexpected thing in the pc file, abort.
112+
// unexpected thing in the pc file, abort.
113113
throw PkgConfigError.ParsingError("Unexpecting line: \(line) in \(pcFile)")
114114
}
115115
}
@@ -126,11 +126,11 @@ struct PkgConfigParser {
126126
}
127127

128128
/// Parses `Requires: ` string into array of dependencies.
129-
/// The dependecy string has seperator which can be (multiple) space or a comma.
129+
/// The dependency string has seperator which can be (multiple) space or a comma.
130130
/// Additionally each there can be an optional version constaint to a dependency.
131131
private func parseDependencies(_ depString: String) throws -> [String] {
132132
let operators = ["=", "<", ">", "<=", ">="]
133-
let seperators = [" ", ","]
133+
let separators = [" ", ","]
134134

135135
// Look at a char at an index if present.
136136
func peek(idx: Int) -> Character? {
@@ -145,7 +145,7 @@ struct PkgConfigParser {
145145
var token = ""
146146
for (idx, char) in depString.characters.enumerated() {
147147
// Encountered a seperator, use the token.
148-
if seperators.contains(String(char)) {
148+
if separators.contains(String(char)) {
149149
// If next character is a space skip.
150150
if let peeked = peek(idx: idx+1) where peeked == " " { continue }
151151
// Append to array of tokens and reset token variable.

0 commit comments

Comments
 (0)