diff options
author | Rob Pike <r@golang.org> | 2010-08-25 13:07:08 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-08-25 13:07:08 +1000 |
commit | d7736413a6942f93fcc4892ad782758d9bbb7e33 (patch) | |
tree | 7c216ed18cd08c6633f18cd6068d704b4f1ca8da | |
parent | 2aa77c6b938a5e048da39335bdc5ff6a882f6890 (diff) | |
download | go-d7736413a6942f93fcc4892ad782758d9bbb7e33.tar.gz go-d7736413a6942f93fcc4892ad782758d9bbb7e33.zip |
scanner: change package comment to be clearer about its functionality.
No semantic changes.
R=gri, rsc1
CC=golang-dev
https://golang.org/cl/1998045
-rw-r--r-- | src/pkg/scanner/scanner.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pkg/scanner/scanner.go b/src/pkg/scanner/scanner.go index a1aa109cb2..0f864f8ff3 100644 --- a/src/pkg/scanner/scanner.go +++ b/src/pkg/scanner/scanner.go @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// A general-purpose scanner for UTF-8 encoded text. Takes an io.Reader -// providing the source which then can be tokenized through repeated -// calls to the Scan function. For compatibility with existing tools, -// the NUL character is not allowed (implementation restriction). +// A scanner and tokenizer for UTF-8-encoded text. Takes an io.Reader +// providing the source, which then can be tokenized through repeated calls +// to the Scan function. For compatibility with existing tools, the NUL +// character is not allowed (implementation restriction). // -// By default, a Scanner skips white space and comments and -// recognizes literals as defined by the Go language spec. -// It may be customized to recognize only a subset of those -// literals and to recognize different white space characters. +// By default, a Scanner skips white space and Go comments and recognizes all +// literals as defined by the Go language specification. It may be +// customized to recognize only a subset of those literals and to recognize +// different white space characters. // // Basic usage pattern: // |