Skip to content

Commit 5b94ec9

Browse files
committed
fixed a typo; renamed variables
1 parent 7e1f23d commit 5b94ec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftSyntax/SyntaxText.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public struct SyntaxText {
100100
guard !self.isEmpty && !other.isEmpty else {
101101
return self.isEmpty && other.isEmpty
102102
}
103-
let doesOtherIncludeSelfBaseAddress: Bool = other.baseAddress! <= self.baseAddress!
104-
let sendEndBound = UnsafePointer<UInt8>(self.baseAddress! + count)
103+
let isSelfBaseAddressBiggerThanOther: Bool = other.baseAddress! <= self.baseAddress!
104+
let selfEndBound = UnsafePointer<UInt8>(self.baseAddress! + count)
105105
let otherEndBound = UnsafePointer<UInt8>(other.baseAddress! + other.count)
106-
return (doesOtherIncludeSelfBaseAddress && sendEndBound <= otherEndBound)
106+
return (isSelfBaseAddressBiggerThanOther && selfEndBound <= otherEndBound)
107107
}
108108

109109
/// Returns `true` if `other` is a substring of this ``SyntaxText``.

0 commit comments

Comments
 (0)