mirror of
https://github.com/golang/go
synced 2024-11-22 05:44:41 -07:00
This was intentionally //-style not // -style .
This commit is contained in:
parent
f4d50977b1
commit
0510b3ac10
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user