1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:57:57 -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. // The parser has given us exactly the comment text.
switch c[1] { switch c[1] {
case '/': case '/':
// -style comment (no newline at the end) //-style comment (no newline at the end)
c = c[2:] c = c[2:]
if len(c) == 0 { if len(c) == 0 {
// empty line // empty line