From cd94665a654c1ec903896f2902573b46dd21baa7 Mon Sep 17 00:00:00 2001 From: Petr <26906365+chebyrash@users.noreply.github.com> Date: Mon, 16 Apr 2018 04:20:28 +0100 Subject: [PATCH] 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) --- examples/chat/hub.go | 2 +- proxy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)