aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYossef Hisham <93604359+yossev@users.noreply.github.com>2024-07-22 16:11:45 +0000
committerGopher Robot <gobot@golang.org>2024-07-22 18:35:09 +0000
commit53270be21c5e14a2d15ada2622f20503d97cb89e (patch)
tree72bb47f659a04b47dfe7f84d7d2d302f9813d7fc /src
parenta6f3add91a51365ec0ea73f88a5019d8e69cca2a (diff)
downloadgo-53270be21c5e14a2d15ada2622f20503d97cb89e.tar.xz
strconv: document that Unquote("''") returns an empty string
Fixes #64280 Change-Id: I1ad84d85b666a2ef52dc6ecdecd508b4e7fe24a6 GitHub-Last-Rev: 6242027261f02c578a09f70fcb39a8cac259855c 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>
Diffstat (limited to 'src')
-rw-r--r--src/strconv/quote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strconv/quote.go b/src/strconv/quote.go
index d626cd0837..1f4929a952 100644
--- a/src/strconv/quote.go
+++ b/src/strconv/quote.go
@@ -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 {