From 6b040a746a10debb2b5b895d5a158b8da6093863 Mon Sep 17 00:00:00 2001 From: yinheli Date: Wed, 5 Jun 2024 20:41:16 +0800 Subject: [PATCH] fix typo --- db.go | 2 +- utils/rand_kv.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index 9db7c767..e128413c 100644 --- a/db.go +++ b/db.go @@ -582,7 +582,7 @@ func checkOptions(options Options) error { if len(options.AutoMergeCronExpr) > 0 { if _, err := cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor). Parse(options.AutoMergeCronExpr); err != nil { - return fmt.Errorf("databse auto merge cron expression is invalid, err: %s", err) + return fmt.Errorf("database auto merge cron expression is invalid, err: %s", err) } } diff --git a/utils/rand_kv.go b/utils/rand_kv.go index 264e16e3..e4f36bba 100644 --- a/utils/rand_kv.go +++ b/utils/rand_kv.go @@ -13,7 +13,7 @@ var ( letters = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") ) -// GetTestKey get formated key, for test only +// GetTestKey get formatted key, for test only func GetTestKey(i int) []byte { return []byte(fmt.Sprintf("rosedb-test-key-%09d", i)) }