소스 검색

last try at examples

Dan Frank 12 년 전
부모
커밋
e86055f813
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      example_test.go

+ 3 - 3
example_test.go

@@ -1,13 +1,13 @@
-package hostpool_test
+package hostpool
 
 import (
 	"github.com/bitly/go-hostpool"
 )
 
-func Example_epsilon_greedy() {
+func ExampleNewEpsilonGreedy() {
 	hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
 	hostResponse := hp.Get()
 	hostname := hostResponse.Host()
-	err := _ // (make a request with hostname)
+	err := nil // (make a request with hostname)
 	hostResponse.Mark(err)
 }