Skip to content

Commit 604fb86

Browse files
rxweihamishknight
authored andcommitted
Make RegexCompilationError internal
`RegexCompilationError` was not meant to be exposed as API.
1 parent 9e2ad7a commit 604fb86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/_StringProcessing/Compiler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ func _compileRegex(
4545
}
4646

4747
// An error produced when compiling a regular expression.
48-
public enum RegexCompilationError: Error, CustomStringConvertible {
48+
enum RegexCompilationError: Error, CustomStringConvertible {
4949
// TODO: Source location?
5050
case uncapturedReference
5151

52-
public var description: String {
52+
var description: String {
5353
switch self {
5454
case .uncapturedReference:
5555
return "Found a reference used before it captured any match."

0 commit comments

Comments
 (0)