summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIkko Eltociear Ashimine <eltociear@gmail.com>2023-01-05 18:05:31 +0000
committerGopher Robot <gobot@golang.org>2023-01-06 17:00:29 +0000
commit76ec91923752f69d2fb20d8b5a2e7963a116ebd6 (patch)
treefde7506e6fcff24b766bcbbd2f9486f343615f11
parent660d4815ea4229f96cede86f396017ebf5ca4bb0 (diff)
downloadgo-git-76ec91923752f69d2fb20d8b5a2e7963a116ebd6.tar.gz
net: fix typo in hosts.go
cannonical -> canonical Change-Id: I656ea210d8ef6eaa85245cb8f463f6b4fd67e1a2 GitHub-Last-Rev: 5a93045add2f2a6885b46377c784f665ab465cfd GitHub-Pull-Request: golang/go#57633 Reviewed-on: https://go-review.googlesource.com/c/go/+/460756 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Damien Neil <dneil@google.com>
-rw-r--r--src/net/hosts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/hosts.go b/src/net/hosts.go
index 7c8642c6ac..dbf8fea136 100644
--- a/src/net/hosts.go
+++ b/src/net/hosts.go
@@ -125,7 +125,7 @@ func readHosts() {
file.close()
}
-// lookupStaticHost looks up the addresses and the cannonical name for the given host from /etc/hosts.
+// lookupStaticHost looks up the addresses and the canonical name for the given host from /etc/hosts.
func lookupStaticHost(host string) ([]string, string) {
hosts.Lock()
defer hosts.Unlock()