mirror of
https://github.com/golang/go
synced 2024-11-21 14:44:40 -07:00
scanner: change package comment to be clearer about its functionality.
No semantic changes. R=gri, rsc1 CC=golang-dev https://golang.org/cl/1998045
This commit is contained in:
parent
2aa77c6b93
commit
d7736413a6
@ -2,15 +2,15 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// A general-purpose scanner for UTF-8 encoded text. Takes an io.Reader
|
// A scanner and tokenizer for UTF-8-encoded text. Takes an io.Reader
|
||||||
// providing the source which then can be tokenized through repeated
|
// providing the source, which then can be tokenized through repeated calls
|
||||||
// calls to the Scan function. For compatibility with existing tools,
|
// to the Scan function. For compatibility with existing tools, the NUL
|
||||||
// the NUL character is not allowed (implementation restriction).
|
// character is not allowed (implementation restriction).
|
||||||
//
|
//
|
||||||
// By default, a Scanner skips white space and comments and
|
// By default, a Scanner skips white space and Go comments and recognizes all
|
||||||
// recognizes literals as defined by the Go language spec.
|
// literals as defined by the Go language specification. It may be
|
||||||
// It may be customized to recognize only a subset of those
|
// customized to recognize only a subset of those literals and to recognize
|
||||||
// literals and to recognize different white space characters.
|
// different white space characters.
|
||||||
//
|
//
|
||||||
// Basic usage pattern:
|
// Basic usage pattern:
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user