dns/dnsmessage: mention that Name in non-escaped

Change-Id: I090dea04d6007dc985d89270d0138f822dc7a10b
GitHub-Last-Rev: c604beebc1e15970d310d7379817c33113f19716
GitHub-Pull-Request: golang/net#176
Reviewed-on: https://go-review.googlesource.com/c/net/+/500295
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/dns/dnsmessage/message.go b/dns/dnsmessage/message.go
index 0215a5d..dda888a 100644
--- a/dns/dnsmessage/message.go
+++ b/dns/dnsmessage/message.go
@@ -1901,7 +1901,7 @@
 
 const nonEncodedNameMax = 254
 
-// A Name is a non-encoded domain name. It is used instead of strings to avoid
+// A Name is a non-encoded and non-escaped domain name. It is used instead of strings to avoid
 // allocations.
 type Name struct {
 	Data   [255]byte
@@ -1928,6 +1928,8 @@
 }
 
 // String implements fmt.Stringer.String.
+//
+// Note: characters inside the labels are not escaped in any way.
 func (n Name) String() string {
 	return string(n.Data[:n.Length])
 }