Skip to content

Commit 0241228

Browse files
authored
Merge pull request #210 from rxwei/dsl-pitch-fix-protocol
Fix protocol definition in DSL pitch.
2 parents a91b951 + 58efb77 commit 0241228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/Evolution/RegexBuilderDSL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ Regex builder addresses all of textual regexes' shortcomings presented in the [M
173173
One of the goals of the regex builder DSL is allowing the developers to easily compose regexes from common currency types and literals, or even define custom patterns to use for matching. We introduce `RegexComponent`, a protocol that unifies all types that can represent a component of a regex.
174174

175175
```swift
176-
protocol RegexComponent {
176+
public protocol RegexComponent {
177177
associatedtype Output
178178
@RegexComponentBuilder
179-
public var regex: Regex<Output> { get }
179+
var regex: Regex<Output> { get }
180180
}
181181
```
182182

0 commit comments

Comments
 (0)