net: fix typo in hosts.go

cannonical -> canonical
This commit is contained in:
Ikko Eltociear Ashimine 2023-01-06 02:51:10 +09:00 committed by GitHub
parent d50ea217f6
commit 5a93045add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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()