Skip to content

Commit

Permalink
fix: format code comment for rand_kv (#240)
Browse files Browse the repository at this point in the history
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
  • Loading branch information
rfyiamcool authored Jul 30, 2023
1 parent bca110f commit 054c34c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/rand_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ var (
letters = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
)

// GetTestKey 获取测试使用的 key
// GetTestKey get formated key, for test only
func GetTestKey(i int) []byte {
return []byte(fmt.Sprintf("rosedb-test-key-%09d", i))
}

// RandomValue 生成随机 value,用于测试
// RandomValue generate random value, for test only
func RandomValue(n int) []byte {
b := make([]byte, n)
for i := range b {
Expand Down

0 comments on commit 054c34c

Please # to comment.