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 {
2929 // ...
3030}
3131
32+ // Errors that may be thrown from default implementations
33+ private enum ParticipantError : Error {
34+ case unsupported
35+ }
36+
3237// Default impls
3338extension Participant {
34- enum Error : Swift . Error {
35- case unsupported
36- }
37-
3839 // Produce a function that will parse a grapheme break entry from a line
3940 public static func graphemeBreakProperty( ) throws -> ( String ) -> GraphemeBreakEntry ? {
40- throw Error . unsupported
41+ throw ParticipantError . unsupported
4142 }
4243
4344 // Produce a function that will extract the bodies of C-style comments from its input
4445 public static func cComments( ) throws -> ( String ) -> [ Substring ] {
45- throw Error . unsupported
46+ throw ParticipantError . unsupported
4647 }
4748
4849 // Produce a function that will extract the bodies of Swift-style comments from its input
4950 public static func swiftComments( ) throws -> ( String ) -> [ Substring ] {
50- throw Error . unsupported
51+ throw ParticipantError . unsupported
5152 }
5253}
You can’t perform that action at this time.
0 commit comments