Commit 3ad995ea authored by Robert Griesemer's avatar Robert Griesemer

strconv: fix comment for godoc

R=rsc
CC=golang-dev
https://golang.org/cl/2029042
parent 09977734
...@@ -100,11 +100,12 @@ func unhex(b byte) (v int, ok bool) { ...@@ -100,11 +100,12 @@ func unhex(b byte) (v int, ok bool) {
// UnquoteChar decodes the first character or byte in the escaped string // UnquoteChar decodes the first character or byte in the escaped string
// or character literal represented by the string s. // or character literal represented by the string s.
// It returns four values: // It returns four values:
// 1) value, the decoded Unicode code point or byte value; //
// 2) multibyte, a boolean indicating whether the decoded character // 1) value, the decoded Unicode code point or byte value;
// requires a multibyte UTF-8 representation; // 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 // 3) tail, the remainder of the string after the character; and
// 4) an error that will be nil if the character is syntactically valid. // 4) an error that will be nil if the character is syntactically valid.
//
// The second argument, quote, specifies the type of literal being parsed // The second argument, quote, specifies the type of literal being parsed
// and therefore which escaped quote character is permitted. // and therefore which escaped quote character is permitted.
// If set to a single quote, it permits the sequence \' and disallows unescaped '. // If set to a single quote, it permits the sequence \' and disallows unescaped '.
......
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