Skip to content

Commit 669eb75

Browse files
authored
Merge pull request #2167 from mbrandonw/patch-1
Fix compilation error in Macro Versioning.md
2 parents 7215983 + c3eb360 commit 669eb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntax/Documentation.docc/Macro Versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For simplicity, this article assumes that 509 is the current swift-syntax versio
1515
Any given version macro can depend on multiple major swift-syntax versions at once. For example, if a macro supports both swift-syntax 509 and swift-syntax 510, it may declare its dependency on swift-syntax as
1616

1717
```
18-
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"..<"511.0.0"),
18+
.package(url: "https://github.com/apple/swift-syntax.git", "509.0.0"..<"511.0.0"),
1919
```
2020

2121
In order to handle breaking API changes, clients can wrap uses of such APIs in conditional compilation clauses that check the version of swift-syntax it is building against. All versions of swift-syntax ≥ 509 will include an empty `SwiftSyntaxVersion509` module, swift-syntax ≥ 510 will include both a `SwiftSyntaxVersion510` and `SwiftSyntaxVersion509` module, and so on for any new releases. This allows clients to write

0 commit comments

Comments
 (0)