From: Robert Griesemer Date: Thu, 9 Dec 2010 18:11:00 +0000 (-0800) Subject: go/token,scanner: fix comments so godoc aligns properly X-Git-Tag: weekly.2010-12-15~75 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b98fffe39eb770cb41b272957ff662e5048d4395;p=gostls13.git go/token,scanner: fix comments so godoc aligns properly R=iant, r2 CC=golang-dev https://golang.org/cl/3532042 --- diff --git a/src/pkg/go/scanner/scanner.go b/src/pkg/go/scanner/scanner.go index cb50fa1ea9..4374dec728 100644 --- a/src/pkg/go/scanner/scanner.go +++ b/src/pkg/go/scanner/scanner.go @@ -7,9 +7,9 @@ // Typical use: // // var s Scanner -// fset := token.NewFileSet() // position information is relative to fset +// fset := token.NewFileSet() // position information is relative to fset // s.Init(fset, filename, src, nil /* no error handler */, 0) -// for { +// for { // pos, tok, lit := s.Scan() // if tok == token.EOF { // break diff --git a/src/pkg/go/token/position.go b/src/pkg/go/token/position.go index 10ec0e39b7..8eb8d138e6 100644 --- a/src/pkg/go/token/position.go +++ b/src/pkg/go/token/position.go @@ -32,9 +32,9 @@ func (pos *Position) IsValid() bool { return pos.Line > 0 } // String returns a string in one of several forms: // // file:line:column valid position with file name -// line:column valid position without file name -// file invalid position with file name -// - invalid position without file name +// line:column valid position without file name +// file invalid position with file name +// - invalid position without file name // func (pos Position) String() string { s := pos.Filename