rename example functions for correct godoc appearance

This commit is contained in:
mappu 2016-11-29 19:50:05 +13:00
parent 732622f4db
commit f2abf8893c
1 changed files with 2 additions and 4 deletions

View File

@ -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: