]> Cypherpunks repositories - gostls13.git/commitdiff
go/token,scanner: fix comments so godoc aligns properly
authorRobert Griesemer <gri@golang.org>
Thu, 9 Dec 2010 18:11:00 +0000 (10:11 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 9 Dec 2010 18:11:00 +0000 (10:11 -0800)
R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042

src/pkg/go/scanner/scanner.go
src/pkg/go/token/position.go

index cb50fa1ea9086418b53d10de2d6588ed9bf1144c..4374dec7285d86a34997f6ec92a29f641484107d 100644 (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
index 10ec0e39b79bb37448c3b35779375fca9c3b1a84..8eb8d138e6bc9c342dd274c5a52a65afb02e8527 100644 (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