From f848f58820b4b4096475e9f9ec904b9e547633c6 Mon Sep 17 00:00:00 2001 From: Richard Wei Date: Wed, 16 Mar 2022 20:45:24 -0700 Subject: [PATCH] Fix typo and `ChoiceOf` initializer in DSL pitch. --- Documentation/Evolution/RegexBuilderDSL.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/Evolution/RegexBuilderDSL.md b/Documentation/Evolution/RegexBuilderDSL.md index a125535e1..d82a0790d 100644 --- a/Documentation/Evolution/RegexBuilderDSL.md +++ b/Documentation/Evolution/RegexBuilderDSL.md @@ -543,7 +543,9 @@ To the developer, the top-level API is a type named `ChoiceOf`. This type has an ```swift public struct ChoiceOf: RegexComponent { public var regex: Regex { get } - public init(@AlternationBuilder builder: () -> R) + public init( + @AlternationBuilder builder: () -> R + ) where R.Output == Output } ``` @@ -1258,7 +1260,7 @@ Sometimes, a textual regex may also use `(?R)` or `(?0)` to recusively evaluate (you|I) say (goodbye|hello|(?R)) ``` -For this, `Regex` offers a special initializer that allows its pattern to recursively reference itself. This is somewhat akin to a fixed-pointer combinator. +For this, `Regex` offers a special initializer that allows its pattern to recursively reference itself. This is somewhat akin to a fixed-point combinator. ```swift extension Regex {