Skip to content

Commit 935d748

Browse files
authored
Merge pull request #277 from hamishknight/tweak-regex-literal-pitch
2 parents 39cb22d + 859c3d5 commit 935d748

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/Evolution/RegexLiterals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func matchHexAssignment(_ input: String) -> (String, Int)? {
7575
let hex = Int(match.hex, radix: 16)
7676
else { return nil }
7777

78-
return (match.identifier, hex)
78+
return (String(match.identifier), hex)
7979
}
8080
```
8181

@@ -382,8 +382,8 @@ We therefore feel this would be a much less compelling feature without first cla
382382
[regex-type]: https://github.com/apple/swift-evolution/blob/main/proposals/0350-regex-type-overview.md
383383
[strongly-typed-captures]: https://github.com/apple/swift-experimental-string-processing/blob/main/Documentation/Evolution/StronglyTypedCaptures.md
384384

385-
[internal-syntax]: https://github.com/apple/swift-experimental-string-processing/blob/main/Documentation/Evolution/RegexSyntax.md
386-
[extended-regex-syntax]: https://github.com/apple/swift-experimental-string-processing/blob/main/Documentation/Evolution/RegexSyntax.md#extended-syntax-modes
385+
[internal-syntax]: https://github.com/apple/swift-experimental-string-processing/blob/39cb22d96d90ee7cb308b1153e106e50598afdd9/Documentation/Evolution/RegexSyntaxRunTimeConstruction.md
386+
[extended-regex-syntax]: https://github.com/apple/swift-experimental-string-processing/blob/39cb22d96d90ee7cb308b1153e106e50598afdd9/Documentation/Evolution/RegexSyntaxRunTimeConstruction.md#extended-syntax-modes
387387

388388
[regex-dsl]: https://github.com/apple/swift-evolution/blob/main/proposals/0351-regex-builder.md
389389
[dsl-captures]: https://github.com/apple/swift-evolution/blob/main/proposals/0351-regex-builder.md#capture-and-reference

0 commit comments

Comments
 (0)