Skip to content

Commit 5b1175e

Browse files
committed
not use underscore
1 parent 253bbf4 commit 5b1175e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite3_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,14 +1239,14 @@ var customFunctionOnce sync.Once
12391239

12401240
func BenchmarkCustomFunctions(b *testing.B) {
12411241
customFunctionOnce.Do(func() {
1242-
custom_add := func(a, b int64) int64 {
1242+
customAdd := func(a, b int64) int64 {
12431243
return a + b
12441244
}
12451245

12461246
sql.Register("sqlite3_BenchmarkCustomFunctions", &SQLiteDriver{
12471247
ConnectHook: func(conn *SQLiteConn) error {
12481248
// Impure function to force sqlite to reexecute it each time.
1249-
if err := conn.RegisterFunc("custom_add", custom_add, false); err != nil {
1249+
if err := conn.RegisterFunc("custom_add", customAdd, false); err != nil {
12501250
return err
12511251
}
12521252
return nil

0 commit comments

Comments
 (0)