]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix typo in hosts.go
authorIkko Eltociear Ashimine <eltociear@gmail.com>
Thu, 5 Jan 2023 18:05:31 +0000 (18:05 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 6 Jan 2023 17:00:29 +0000 (17:00 +0000)
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>
src/net/hosts.go

index 7c8642c6ac58bacf94be476d10272a33d7d5a32e..dbf8fea136d7731c7daaff0fa5c7130ce346bdee 100644 (file)
@@ -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()