Minor fixes in comments

* Fix typo

"netowrk" is a misspelling of "network"

* Fix export comment

Comment on exported type Hub should be of the form "Hub ..." (golint)
This commit is contained in:
Petr 2018-04-16 04:20:28 +01:00 committed by Gary Burd
parent eb92580837
commit cd94665a65
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
package main
// hub maintains the set of active clients and broadcasts messages to the
// Hub maintains the set of active clients and broadcasts messages to the
// clients.
type Hub struct {
// Registered clients.

View File

@ -14,7 +14,7 @@ import (
"strings"
)
type netDialerFunc func(netowrk, addr string) (net.Conn, error)
type netDialerFunc func(network, addr string) (net.Conn, error)
func (fn netDialerFunc) Dial(network, addr string) (net.Conn, error) {
return fn(network, addr)