Skip to content

Commit 76801d6

Browse files
committed
Fix protocol definition in DSL pitch.
1 parent b76e956 commit 76801d6

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)