Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13925] Error in the Swift grammar documentation #56323

Closed
swift-ci opened this issue Dec 2, 2020 · 2 comments
Closed

[SR-13925] Error in the Swift grammar documentation #56323

swift-ci opened this issue Dec 2, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Dec 2, 2020

Previous ID SR-13925
Radar rdar://problem/71992655
Original Reporter svanimpe (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, Documentation
Assignee None
Priority Medium

md5: 5a071f3ee070ff72433f7d73ea2546c8

Issue Description:

On https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal, the following lines make it seem as though extended delimiters are required for multiline strings:

multiline-string-literal-opening-delimiterextended-string-literal-delimiter """
multiline-string-literal-closing-delimiter → """ extended-string-literal-delimiter

Shouldn't extended-string-literal-delimiter be optional, like with regular strings?

string-literal-opening-delimiterextended-string-literal-delimiter opt "
string-literal-closing-delimiter → " extended-string-literal-delimiter opt
@typesanitizer
Copy link

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Alex Martini (JIRA)

The grammar has been corrected in the latest version.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation
Projects
None yet
Development

No branches or pull requests

2 participants