1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:57:57 -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:
Olivier Duperray 2012-01-30 09:58:25 -08:00 committed by Robert Griesemer
parent 022aac7883
commit 74e8a1308a

View File

@ -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()