1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:04:44 -07:00

go/scanner: update comment

R=r, r2
CC=golang-dev
https://golang.org/cl/4184053
This commit is contained in:
Robert Griesemer 2011-02-17 17:22:16 -08:00
parent 6d9db54be5
commit 547918e363

View File

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