@@ -109,7 +109,7 @@ struct PkgConfigParser {
109
109
let value = line [ equalsIndex. successor ( ) ..< line. endIndex]
110
110
variables [ name] = try resolveVariables ( value)
111
111
} else {
112
- // Unexpected thing in the pc file, abort.
112
+ // unexpected thing in the pc file, abort.
113
113
throw PkgConfigError . ParsingError ( " Unexpecting line: \( line) in \( pcFile) " )
114
114
}
115
115
}
@@ -126,11 +126,11 @@ struct PkgConfigParser {
126
126
}
127
127
128
128
/// 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.
130
130
/// Additionally each there can be an optional version constaint to a dependency.
131
131
private func parseDependencies( _ depString: String ) throws -> [ String ] {
132
132
let operators = [ " = " , " < " , " > " , " <= " , " >= " ]
133
- let seperators = [ " " , " , " ]
133
+ let separators = [ " " , " , " ]
134
134
135
135
// Look at a char at an index if present.
136
136
func peek( idx: Int ) -> Character ? {
@@ -145,7 +145,7 @@ struct PkgConfigParser {
145
145
var token = " "
146
146
for (idx, char) in depString. characters. enumerated ( ) {
147
147
// Encountered a seperator, use the token.
148
- if seperators . contains ( String ( char) ) {
148
+ if separators . contains ( String ( char) ) {
149
149
// If next character is a space skip.
150
150
if let peeked = peek ( idx: idx+ 1 ) where peeked == " " { continue }
151
151
// Append to array of tokens and reset token variable.
0 commit comments