mirror of
https://github.com/golang/go
synced 2024-11-21 23:04:39 -07:00
pkg/go/scanner: Fix Typical use output
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5595045
This commit is contained in:
parent
022aac7883
commit
74e8a1308a
@ -8,7 +8,7 @@
|
||||
//
|
||||
// var s scanner.Scanner
|
||||
// fset := token.NewFileSet() // position information is relative to fset
|
||||
// file := fset.AddFile(filename, fset.Base(), len(src)) // register file
|
||||
// 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()
|
||||
|
Loading…
Reference in New Issue
Block a user