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