Skip to content

Commit

Permalink
Missing array index in module example (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
oranagra committed Sep 9, 2020
1 parent 2c335a8 commit 25555fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topics/modules-native-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ method we'll do something like this:
da->count = RedisModule_LoadUnsigned(io);
da->values = RedisModule_Alloc(da->count * sizeof(double));
for (size_t j = 0; j < da->count; j++)
da->values = RedisModule_LoadDouble(io);
da->values[j] = RedisModule_LoadDouble(io);
return da;
}

Expand Down

0 comments on commit 25555fe

Please sign in to comment.