From 4792ca7b93d5745647a95ac73a93f9c9b97db499 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 23 Apr 2024 05:27:54 +0000 Subject: doc: fix typos in docs Change-Id: Ib51283b35d6d35acd7a90cd531ff6897a23d9894 GitHub-Last-Rev: dd485f332e58c9467d68ed571317dfd56eea9d16 GitHub-Pull-Request: golang/go#66985 Reviewed-on: https://go-review.googlesource.com/c/go/+/580797 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Joedian Reid --- doc/next/6-stdlib/2-unique.md | 2 +- doc/next/6-stdlib/99-minor/net/63116.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/next/6-stdlib/2-unique.md b/doc/next/6-stdlib/2-unique.md index b2c3bdfd0d..45f3a9bad3 100644 --- a/doc/next/6-stdlib/2-unique.md +++ b/doc/next/6-stdlib/2-unique.md @@ -1,6 +1,6 @@ ### 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"). Any value of comparable type may be canonicalized with the new diff --git a/doc/next/6-stdlib/99-minor/net/63116.md b/doc/next/6-stdlib/99-minor/net/63116.md index 89ec4b1e07..87a0983749 100644 --- a/doc/next/6-stdlib/99-minor/net/63116.md +++ b/doc/next/6-stdlib/99-minor/net/63116.md @@ -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)` will now report whether a DNS error was caused by a timeout. -- cgit v1.2.3-54-g00ecf