From eb93f86275870bfe7d2b71d244df9ea87320e185 Mon Sep 17 00:00:00 2001 From: Volker Dobler Date: Mon, 6 Jan 2014 10:00:20 -0800 Subject: [PATCH] net/http/cookiejar: document format of domain in PublicSuffix Document what values a PublicSuffixList must accept as a domain in a call to PublicSuffix. R=bradfitz, nigeltao CC=golang-codereviews https://golang.org/cl/47560044 --- src/pkg/net/http/cookiejar/jar.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/net/http/cookiejar/jar.go b/src/pkg/net/http/cookiejar/jar.go index 389ab58e41..82f18a1784 100644 --- a/src/pkg/net/http/cookiejar/jar.go +++ b/src/pkg/net/http/cookiejar/jar.go @@ -34,9 +34,9 @@ import ( type PublicSuffixList interface { // PublicSuffix returns the public suffix of domain. // - // TODO: specify which of the caller and callee is responsible for IP - // addresses, for leading and trailing dots, for case sensitivity, and - // for IDN/Punycode. + // Domain is a lowercase punycoded domain name (not an IP address) + // without leading or trailing dots. The returned value is in the + // same form. PublicSuffix(domain string) string // String returns a description of the source of this public suffix -- 2.48.1