aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-08-31 14:18:20 -0700
committerRobert Griesemer <gri@golang.org>2010-08-31 14:18:20 -0700
commit3ad995ea88230607dbb2ebd498b8d48dfc4e633e (patch)
treee486fcf949737bdd03aa734d45a571f9bffb8c9d
parent09977734cd63aa31563cd11a3786e8951758b041 (diff)
downloadgo-3ad995ea88230607dbb2ebd498b8d48dfc4e633e.tar.gz
go-3ad995ea88230607dbb2ebd498b8d48dfc4e633e.zip
strconv: fix comment for godoc
R=rsc CC=golang-dev https://golang.org/cl/2029042
-rw-r--r--src/pkg/strconv/quote.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pkg/strconv/quote.go b/src/pkg/strconv/quote.go
index 53774ee6f8..ca62296d64 100644
--- a/src/pkg/strconv/quote.go
+++ b/src/pkg/strconv/quote.go
@@ -100,11 +100,12 @@ func unhex(b byte) (v int, ok bool) {
// UnquoteChar decodes the first character or byte in the escaped string
// or character literal represented by the string s.
// It returns four values:
-// 1) value, the decoded Unicode code point or byte value;
-// 2) multibyte, a boolean indicating whether the decoded character
-// requires a multibyte UTF-8 representation;
-// 3) tail, the remainder of the string after the character; and
-// 4) an error that will be nil if the character is syntactically valid.
+//
+// 1) value, the decoded Unicode code point or byte value;
+// 2) multibyte, a boolean indicating whether the decoded character requires a multibyte UTF-8 representation;
+// 3) tail, the remainder of the string after the character; and
+// 4) an error that will be nil if the character is syntactically valid.
+//
// The second argument, quote, specifies the type of literal being parsed
// and therefore which escaped quote character is permitted.
// If set to a single quote, it permits the sequence \' and disallows unescaped '.