Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 25c9737

Browse files
committed
fix documentation example function names
These will now appear properly within godoc.
1 parent db93424 commit 25c9737

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

enumeration_options_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func ExampleEnumerationOptions() {
2727
// Output: sources not found in options
2828
}
2929

30-
func ExampleEnumerationOptionsHasSources() {
30+
func ExampleEnumerationOptions_HasSources() {
3131
opts := EnumerationOptions{}
3232
fmt.Println(opts.HasSources())
3333
// Output: false

result_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,23 @@ func ExampleResult() {
8282
// Output: example : info.bing.com
8383
}
8484

85-
func ExampleResultIsSuccess() {
85+
func ExampleResult_IsSuccess() {
8686
result := Result{Success: "wiggle.github.com"}
8787
if result.IsSuccess() {
8888
fmt.Println(result.Success)
8989
}
9090
// Output: wiggle.github.com
9191
}
9292

93-
func ExampleResultIsFailure() {
93+
func ExampleResult_IsFailure() {
9494
result := Result{Failure: errors.New("failed to party")}
9595
if result.IsFailure() {
9696
fmt.Println(result.Failure.Error())
9797
}
9898
// Output: failed to party
9999
}
100100

101-
func ExampleResultHasType() {
101+
func ExampleResult_HasType() {
102102
result := Result{Type: "example"}
103103
fmt.Println(result.HasType())
104104
// Output: true

0 commit comments

Comments
 (0)