mirror of https://github.com/golang/go.git
doc: fix typos in docs
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
9f9dd2bfd8
commit
dd485f332e
|
|
@ -1,6 +1,6 @@
|
||||||
### New unique package
|
### New unique package
|
||||||
|
|
||||||
The new [unique](/pkg/unique) package provides facilites for
|
The new [unique](/pkg/unique) package provides facilities for
|
||||||
canonicalizing values (like "interning" or "hash-consing").
|
canonicalizing values (like "interning" or "hash-consing").
|
||||||
|
|
||||||
Any value of comparable type may be canonicalized with the new
|
Any value of comparable type may be canonicalized with the new
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
The [DNSError] type now wraps errors caused by timeouts or cancelation.
|
The [DNSError] type now wraps errors caused by timeouts or cancellation.
|
||||||
For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
|
For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
|
||||||
will now report whether a DNS error was caused by a timeout.
|
will now report whether a DNS error was caused by a timeout.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue