forked from mirror/websocket
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:
parent
eb92580837
commit
cd94665a65
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
package main
|
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.
|
// clients.
|
||||||
type Hub struct {
|
type Hub struct {
|
||||||
// Registered clients.
|
// Registered clients.
|
||||||
|
|
2
proxy.go
2
proxy.go
|
@ -14,7 +14,7 @@ import (
|
||||||
"strings"
|
"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) {
|
func (fn netDialerFunc) Dial(network, addr string) (net.Conn, error) {
|
||||||
return fn(network, addr)
|
return fn(network, addr)
|
||||||
|
|
Loading…
Reference in New Issue