Permalink
Browse files

documentation reflects ASCII domain names

  • Loading branch information...
ydnar committed May 16, 2018
1 parent fbc66a4 commit cbaf69047c891e8f6e1123aa8a94ebea439e1c92
Showing with 4 additions and 4 deletions.
  1. +1 −1 internal/build/generate.go
  2. +2 −2 zone.go
  3. +1 −1 zones.go
@@ -222,7 +222,7 @@ var y = [{{len .Zones}}]Zone{
{{end}} \
}
// ZoneMap maps Unicode domain names to Zones.
// ZoneMap maps domain names to Zones.
var ZoneMap = map[string]*Zone{
{{range $d := .Domains}} \
{{$z := (index $.Zones $d)}} \
@@ -31,7 +31,7 @@ func (tags Tags) String() string {
// Zone represents a single DNS zone (a public suffix), where subdomains may be registered or created.
type Zone struct {
// Normalized UTF-8 domain name
// Normalized (ASCII, punycode) fully-qualified domain name
Domain string
// Parent Zone (nil if Zone is a TLD)
@@ -176,7 +176,7 @@ type list struct{}
// PublicSuffix returns the public suffix (zone) for a given domain name
// by calling PublicZone. Input must be normalized by the client
// (lowercase, Unicode). Malformed input, IP addresses, or other non-domain
// (lowercase, ASCII, punycode). Malformed input, IP addresses, or other non-domain
// name strings will be returned unmodified.
func (l list) PublicSuffix(domain string) string {
z := PublicZone(domain)
@@ -4574,7 +4574,7 @@ var y = [4475]Zone{
{"wcape.school.za", &z[4402], x, s{"mopani.school.za", "ns0.serendipity.org.za", "ochre.school.za", "ucthpx.uct.ac.za"}, n, n, e, e, e, 0x0, t},
}
// ZoneMap maps Unicode domain names to Zones.
// ZoneMap maps domain names to Zones.
var ZoneMap = map[string]*Zone{
"aaa": &z[0],
"aarp": &z[1],

0 comments on commit cbaf690

Please sign in to comment.