mirror of
https://github.com/golang/go
synced 2024-11-24 21:10:04 -07:00
go/scanner: update comment
R=r, r2 CC=golang-dev https://golang.org/cl/4184053
This commit is contained in:
parent
6d9db54be5
commit
547918e363
@ -8,7 +8,8 @@
|
||||
//
|
||||
// var s Scanner
|
||||
// fset := token.NewFileSet() // position information is relative to fset
|
||||
// s.Init(fset, filename, src, nil /* no error handler */, 0)
|
||||
// file := fset.AddFile(filename, fset.Base(), len(src)) // register file
|
||||
// s.Init(file, src, nil /* no error handler */, 0)
|
||||
// for {
|
||||
// pos, tok, lit := s.Scan()
|
||||
// if tok == token.EOF {
|
||||
|
Loading…
Reference in New Issue
Block a user