We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegexCompilationError
1 parent 9e2ad7a commit 604fb86Copy full SHA for 604fb86
Sources/_StringProcessing/Compiler.swift
@@ -45,11 +45,11 @@ func _compileRegex(
45
}
46
47
// An error produced when compiling a regular expression.
48
-public enum RegexCompilationError: Error, CustomStringConvertible {
+enum RegexCompilationError: Error, CustomStringConvertible {
49
// TODO: Source location?
50
case uncapturedReference
51
52
- public var description: String {
+ var description: String {
53
switch self {
54
case .uncapturedReference:
55
return "Found a reference used before it captured any match."
0 commit comments