Skip to content

Fix protocol definition in DSL pitch. #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Documentation/Evolution/RegexBuilderDSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ Regex builder addresses all of textual regexes' shortcomings presented in the [M
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.

```swift
protocol RegexComponent {
public protocol RegexComponent {
associatedtype Output
@RegexComponentBuilder
public var regex: Regex<Output> { get }
var regex: Regex<Output> { get }
}
```

Expand Down