File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/_StringProcessing/Engine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ extension String {
190190 limitedBy end: String . Index ,
191191 isScalarSemantics: Bool
192192 ) -> QuickResult < String . Index ? > {
193- guard currentPosition < end else { return . definite ( nil ) }
193+ assert ( currentPosition < end)
194194 guard let ( asciiValue, next, isCRLF) = _quickASCIICharacter (
195195 at: currentPosition, limitedBy: end
196196 ) else {
@@ -273,7 +273,7 @@ extension String {
273273 isStrictASCII: Bool ,
274274 isScalarSemantics: Bool
275275 ) -> QuickResult < String . Index ? > {
276- guard currentPosition < end else { return . definite ( nil ) }
276+ assert ( currentPosition < end)
277277 guard let ( next, result) = _quickMatch (
278278 cc,
279279 at: currentPosition,
You can’t perform that action at this time.
0 commit comments