1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:24:39 -07:00

strconv: document that Unquote("''") returns an empty string

Fixes #64280

Change-Id: I1ad84d85b666a2ef52dc6ecdecd508b4e7fe24a6
GitHub-Last-Rev: 6242027261
GitHub-Pull-Request: golang/go#68524
Reviewed-on: https://go-review.googlesource.com/c/go/+/599575
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
Yossef Hisham 2024-07-22 16:11:45 +00:00 committed by Gopher Robot
parent a6f3add91a
commit 53270be21c

View File

@ -378,7 +378,7 @@ func QuotedPrefix(s string) (string, error) {
// or backquoted Go string literal, returning the string value
// that s quotes. (If s is single-quoted, it would be a Go
// character literal; Unquote returns the corresponding
// one-character string.)
// one-character string. For '' Unquote returns the empty string.)
func Unquote(s string) (string, error) {
out, rem, err := unquote(s, true)
if len(rem) > 0 {