diff --git a/examples/chat/hub.go b/examples/chat/hub.go index 7f07ea0..bb5c0e3 100644 --- a/examples/chat/hub.go +++ b/examples/chat/hub.go @@ -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. diff --git a/proxy.go b/proxy.go index 102538b..bf2478e 100644 --- a/proxy.go +++ b/proxy.go @@ -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)