File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ public struct SyntaxText {
100
100
guard !self . isEmpty && !other. isEmpty else {
101
101
return self . isEmpty && other. isEmpty
102
102
}
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)
105
105
let otherEndBound = UnsafePointer < UInt8 > ( other. baseAddress! + other. count)
106
- return ( doesOtherIncludeSelfBaseAddress && sendEndBound <= otherEndBound)
106
+ return ( isSelfBaseAddressBiggerThanOther && selfEndBound <= otherEndBound)
107
107
}
108
108
109
109
/// Returns `true` if `other` is a substring of this ``SyntaxText``.
You can’t perform that action at this time.
0 commit comments