Open burnchar opened 1 year ago
Good questions @burnchar
We should fix this language on multi-line raw string literals.
The opening """ must be the last non-whitespace character on that line. (The example in your description won't compile See Sharplab.io
Any whitespace following the """ on the line opening the raw string literal is ignored.
I've added this to our backlog to update this on our next update. I've also added the "help wanted" label if anyone wants to submit a PR in the meantime.
I believe this document is good overall but can use a few clarifications:
What does "On their own line" mean? The code example immediately preceding this rule begins with:
var xml = """
Are those quotes "on their own line" despite being on the same line as the variable declaration? Either way, is the whitespace that follows that initial line included in the string literal?Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.