mirror of https://github.com/golang/go.git
net: fix typo in hosts.go
cannonical -> canonical
Change-Id: I656ea210d8ef6eaa85245cb8f463f6b4fd67e1a2
GitHub-Last-Rev: 5a93045add
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>
This commit is contained in:
parent
660d4815ea
commit
76ec919237
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue