Skip to content

Commit cd94665

Browse files
chebyrashgaryburd
authored andcommitted
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)
1 parent eb92580 commit cd94665

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/chat/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package main
66

7-
// hub maintains the set of active clients and broadcasts messages to the
7+
// Hub maintains the set of active clients and broadcasts messages to the
88
// clients.
99
type Hub struct {
1010
// Registered clients.

proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
)
1616

17-
type netDialerFunc func(netowrk, addr string) (net.Conn, error)
17+
type netDialerFunc func(network, addr string) (net.Conn, error)
1818

1919
func (fn netDialerFunc) Dial(network, addr string) (net.Conn, error) {
2020
return fn(network, addr)

0 commit comments

Comments
 (0)