swiftlang/swift-org-website

Swift 6 concurrency guide syntax error

Opened this issue · 2 comments

In https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/swift6mode/ , it says

-swift-version 6 can be passed in a Swift package manager command-line invocation using the -Xswiftc flag:
~ swift build -Xswiftc -swift-version 6
~ swift test -Xswiftc -swift-version 6

which is wrong and leads to a syntax error. The correct invocations are

~ swift build -Xswiftc -swift-version -Xswiftc 6
~ swift test -Xswiftc -swift-version -Xswiftc 6

Thanks so much for finding this! The guide actually lives in a seperate repo, and I've got up a change to fix it here:

apple/swift-migration-guide#110

@mickeyl The migration guide has its own repository at https://github.com/apple/swift-migration-guide.

It doesn't look like I can transfer your issue there since the guide repository hasn't made the move to the swiftlang Github organization yet.

Probably the quickest way to have your feedback addressed would be to create an issue in that repository with this feedback.

EDIT: Looks like I was typing a comment into an unrefreshed page and this is already covered.