Skip to content

Commit 8c64329

Browse files
Go: HINCRBYFLOAT - fix review comments
Signed-off-by: Prateek Kumar <[email protected]>
1 parent fa620ca commit 8c64329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/api/commands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ type HashCommands interface {
705705
// [valkey.io]: https://valkey.io/commands/hstrlen/
706706
HStrLen(key string, field string) (Result[int64], error)
707707

708-
// Increments the string representing a floating point number stored at `field`` in the hash stored at `key` by increment.
708+
// Increments the string representing a floating point number stored at `field` in the hash stored at `key` by increment.
709709
// By using a negative increment value, the value stored at field in the hash stored at `key` is decremented.
710710
// If `field` or `key` does not exist, it is set to 0 before performing the operation.
711711
//
@@ -719,7 +719,7 @@ type HashCommands interface {
719719
// Return value:
720720
// The Result[float64] value of `field` in the hash stored at `key` after the increment.
721721
//
722-
// For example:
722+
// Example:
723723
// hsetResult, err := client.HSet("key", map[string]string{"field": "10"})
724724
// hincrByFloatResult, err := client.HIncrByFloat("key", "field", 1.5)
725725
// // hincrByFloatResult.Value(): 11.5

0 commit comments

Comments
 (0)