From f2abf8893c665f381d08d15a01eb0664b37e331e Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 29 Nov 2016 19:50:05 +1300 Subject: [PATCH] rename example functions for correct godoc appearance --- Example_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Example_test.go b/Example_test.go index c136e8e..deb0550 100644 --- a/Example_test.go +++ b/Example_test.go @@ -4,8 +4,7 @@ import ( "fmt" ) -func ExampleConnect() { - +func ExampleHubConnectionOptions_Connect() { opts := HubConnectionOptions{ Address: "127.0.0.1", Self: *NewUserInfo("slowpoke9"), @@ -31,8 +30,7 @@ func ExampleConnect() { } } -func ExampleConnectSync() { - +func ExampleHubConnectionOptions_ConnectSync() { cb := func(hub *HubConnection, event HubEvent) { switch event.EventType { case EVENT_CONNECTION_STATE_CHANGED: