Skip to content

Commit b05f6d6

Browse files
committed
Tighten up an invariant
1 parent e6ec173 commit b05f6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_MatchingEngine/Regex/Parse/LexicalAnalysis.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ extension Source {
277277
return try Source.validateUnicodeScalar(str, .octal)
278278

279279
default:
280-
throw ParseError.misc("TODO: Or is this an assert?")
280+
fatalError("Unexpected scalar start")
281281
}
282282
}
283283
}

0 commit comments

Comments
 (0)