Commit 90c38c46 authored by Olivier Duperray's avatar Olivier Duperray Committed by Robert Griesemer

go/scanner: fix example

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5532085
parent 6ff01f01
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// source which can then be tokenized through repeated calls to the Scan // source which can then be tokenized through repeated calls to the Scan
// function. Typical use: // function. Typical use:
// //
// var s 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)
......
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