From 58efb77af1a820efb4a23b0c7157a36c06c05e42 Mon Sep 17 00:00:00 2001 From: Richard Wei Date: Wed, 16 Mar 2022 19:24:33 -0700 Subject: [PATCH] Fix protocol definition in DSL pitch. --- Documentation/Evolution/RegexBuilderDSL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Evolution/RegexBuilderDSL.md b/Documentation/Evolution/RegexBuilderDSL.md index 3b6eaedc7..a125535e1 100644 --- a/Documentation/Evolution/RegexBuilderDSL.md +++ b/Documentation/Evolution/RegexBuilderDSL.md @@ -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 { get } + var regex: Regex { get } } ```