Commit 74e8a130 authored by Olivier Duperray's avatar Olivier Duperray Committed by Robert Griesemer

pkg/go/scanner: Fix Typical use output

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5595045
parent 022aac78
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// //
// var s scanner.Scanner // var s scanner.Scanner
// fset := token.NewFileSet() // position information is relative to fset // 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) // s.Init(file, src, nil /* no error handler */, 0)
// for { // for {
// pos, tok, lit := s.Scan() // pos, tok, lit := s.Scan()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment