1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-09 05:41:45 +03:00
This commit is contained in:
heyanfu
2021-06-09 00:58:16 +08:00
committed by GitHub
parent 237bad5284
commit 14d82a2d93

View File

@ -49,7 +49,7 @@ var (
func Struct(dst interface{}) (StructValue, error) {
v := reflect.ValueOf(dst)
// The dstination to scan into should be a struct pointer.
// The destination to scan into should be a struct pointer.
if v.Kind() != reflect.Ptr || v.IsNil() {
return StructValue{}, fmt.Errorf("redis.Scan(non-pointer %T)", dst)
}