What version of Go are you using (go version)?
Go 1.19
Does this issue reproduce with the latest release?
Yes
What did you do?
Read the current Go documentation website, for instance the Links section on the new Comments page
What did you expect to see?
Usage of the simple back quote character: `
What did you see instead?
Usage of double quote characters: “ and ”
- are NOT part of the Go comment syntax specification
“ :
”:
Context
I think that for a language that boasts itself to be very precise about Unicode, it should be very precise as what kind of backquotes / double-quotes it does render in its code-blocks example for the comment documentation, hence this issue.
I am not sure if that is a problem yet, maybe only a discussion.
Here is what the page says about rendering quotes:
A pair of consecutive backticks (` U+0060) is interpreted as a Unicode left quote (“ U+201C), and a pair of consecutive single quotes (' U+0027) is interpreted as a unicode right quote (” U+201D).
Specific example
In the comment.md file, source for the Comment documentation page:
- text-side:
“[Text]: URL”
- code-block:
“[JSON and Go].”
What version of Go are you using (
go version)?Go 1.19
Does this issue reproduce with the latest release?
Yes
What did you do?
Read the current Go documentation website, for instance the Links section on the new Comments page
What did you expect to see?
Usage of the simple back quote character: `
\x60(one byte)What did you see instead?
Usage of double quote characters:
“and”“:\xe2\x80\x9c(three bytes)”:\xe2\x80\x9d(three bytes)Context
I think that for a language that boasts itself to be very precise about Unicode, it should be very precise as what kind of backquotes / double-quotes it does render in its code-blocks example for the comment documentation, hence this issue.
I am not sure if that is a problem yet, maybe only a discussion.
Here is what the page says about rendering quotes:
Specific example
In the
comment.mdfile, source for the Comment documentation page:“[Text]: URL”“[JSON and Go].”