Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b98fffe3
Commit
b98fffe3
authored
Dec 09, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/token,scanner: fix comments so godoc aligns properly
R=iant, r2 CC=golang-dev
https://golang.org/cl/3532042
parent
8e609cdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/pkg/go/scanner/scanner.go
src/pkg/go/scanner/scanner.go
+2
-2
src/pkg/go/token/position.go
src/pkg/go/token/position.go
+3
-3
No files found.
src/pkg/go/scanner/scanner.go
View file @
b98fffe3
...
...
@@ -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
...
...
src/pkg/go/token/position.go
View file @
b98fffe3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment