We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a559014 commit a95194dCopy full SHA for a95194d
Sources/TSCUtility/Version.swift
@@ -268,11 +268,10 @@ extension Range where Bound == Version {
268
}
269
270
extension Range where Bound == Version {
271
-
272
public func contains(version: Version) -> Bool {
273
// Special cases if version contains prerelease identifiers.
274
if !version.prereleaseIdentifiers.isEmpty {
275
- // If the ranage does not contain prerelease identifiers, return false.
+ // If the range does not contain prerelease identifiers, return false.
276
if lowerBound.prereleaseIdentifiers.isEmpty && upperBound.prereleaseIdentifiers.isEmpty {
277
return false
278
0 commit comments