diff --git a/example_test.go b/example_test.go index 46bed6f0..e696fdfe 100644 --- a/example_test.go +++ b/example_test.go @@ -203,8 +203,7 @@ func ExampleClient_HSet() { Key2 string `json:"key2"` } items := Items{"field1", "field2"} - // Last argument is expiration. Zero means the key has no - // expiration time. + err := rdb.HSet(ctx, "key", items).Err() if err != nil { panic(err)