Skip to content

Commit 3d2089f

Browse files
committed
Fix: ExampleLastInsertId() -> ExampleResult_LastInsertId()
The new tests analyzer reports common mistakes in declarations of tests, fuzzers, benchmarks, and examples in test packages, such as malformed names, incorrect signatures, or examples that document non-existent identifiers. Some of these mistakes may cause tests not to run. This analyzer is among the subset of analyzers that are run by go test. See: https://go.dev/doc/go1.24#vet https://go.dev/blog/examples#example-function-names
1 parent b9933eb commit 3d2089f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lastinsertid_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// This example shows the usage of Connector type
12-
func ExampleLastInsertId() {
12+
func ExampleResult_LastInsertId() {
1313

1414
connString := makeConnURL().String()
1515

0 commit comments

Comments
 (0)