Commit b6571a07 authored by Rob Pike's avatar Rob Pike

strconv: fix documentation for CanBackquote.

Space is not a control character.

Fixes #8571.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/137380043
parent 8ac35be1
......@@ -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)
......
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