Skip to content

Commit

Permalink
strconv: fix documentation for CanBackquote.
Browse files Browse the repository at this point in the history
Space is not a control character.

Fixes golang#8571.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/137380043
  • Loading branch information
robpike committed Sep 9, 2014
1 parent 8ac35be commit b6571a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strconv/quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6571a0

Please sign in to comment.