1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:24:42 -07:00

This was intentionally //-style not // -style .

This commit is contained in:
oldme 2024-04-18 09:33:38 +08:00
parent f4d50977b1
commit 0510b3ac10

View File

@ -123,7 +123,7 @@ func (g *CommentGroup) Text() string {
// The parser has given us exactly the comment text.
switch c[1] {
case '/':
// -style comment (no newline at the end)
//-style comment (no newline at the end)
c = c[2:]
if len(c) == 0 {
// empty line