File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,22 @@ public protocol Participant {
31
31
32
32
// Default impls
33
33
extension Participant {
34
- static var unsupported : Error { " Unsupported " }
34
+ enum Error : Swift . Error {
35
+ case unsupported
36
+ }
35
37
36
38
// Produce a function that will parse a grapheme break entry from a line
37
39
public static func graphemeBreakProperty( ) throws -> ( String ) -> GraphemeBreakEntry ? {
38
- throw unsupported
40
+ throw Error . unsupported
39
41
}
40
42
41
43
// Produce a function that will extract the bodies of C-style comments from its input
42
44
public static func cComments( ) throws -> ( String ) -> [ Substring ] {
43
- throw unsupported
45
+ throw Error . unsupported
44
46
}
45
47
46
48
// Produce a function that will extract the bodies of Swift-style comments from its input
47
49
public static func swiftComments( ) throws -> ( String ) -> [ Substring ] {
48
- throw unsupported
50
+ throw Error . unsupported
49
51
}
50
52
}
You can’t perform that action at this time.
0 commit comments