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)) }