summaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2014-09-09 11:45:36 -0700
committerRob Pike <r@golang.org>2014-09-09 11:45:36 -0700
commit49384de5d72f451ca24e4d30847e1e02f7af6068 (patch)
tree31f13e33e640d58496661b2511e783f842f83234 /src/strconv
parent0e7ed78fe8ff14694a05c5ab48e6b62bdb51d78a (diff)
downloadgo-49384de5d72f451ca24e4d30847e1e02f7af6068.tar.gz
strconv: fix documentation for CanBackquote.
Space is not a control character. Fixes issue 8571. LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://codereview.appspot.com/137380043
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/quote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strconv/quote.go b/src/strconv/quote.go
index 4469c688b..53d51b5a4 100644
--- a/src/strconv/quote.go
+++ b/src/strconv/quote.go
@@ -143,7 +143,7 @@ func AppendQuoteRuneToASCII(dst []byte, r rune) []byte {
// CanBackquote reports whether the string s can be represented
// unchanged as a single-line backquoted string without control
-// characters other than space and tab.
+// characters other than tab.
func CanBackquote(s string) bool {
for len(s) > 0 {
r, wid := utf8.DecodeRuneInString(s)