fix: rhash - Scan typo

This commit is contained in:
Anton
2024-04-21 20:46:43 +05:00
parent 0c2083f925
commit cdfdf9779c
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ func (d *DB) Len(key string) (int, error) {
}
// Scan iterates over hash items with fields matching pattern.
// Returns a slice field-value pairs (see [HashItem]) of size count
// Returns a slice of field-value pairs (see [HashItem]) of size count
// based on the current state of the cursor. Returns an empty HashItem
// slice when there are no more items.
// If the key does not exist or is not a hash, returns a nil slice.

View File

@@ -300,7 +300,7 @@ func (tx *Tx) Len(key string) (int, error) {
}
// Scan iterates over hash items with fields matching pattern.
// Returns a slice field-value pairs (see [HashItem]) of size count
// Returns a slice of field-value pairs (see [HashItem]) of size count
// based on the current state of the cursor. Returns an empty HashItem
// slice when there are no more items.
// If the key does not exist or is not a hash, returns a nil slice.