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

go/token,scanner: fix comments so godoc aligns properly

R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042
This commit is contained in:
Robert Griesemer 2010-12-09 10:11:00 -08:00
parent 8e609cddef
commit b98fffe39e
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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