Skip to content

Commit

Permalink
Correct RM_GetSharedAPI documentation. (redis#11601)
Browse files Browse the repository at this point in the history
Fix wrong API name i example doc
  • Loading branch information
yossigo authored and madolson committed Apr 19, 2023
1 parent 2afdd25 commit 15dc12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -9877,7 +9877,7 @@ int RM_ExportSharedAPI(RedisModuleCtx *ctx, const char *apiname, void *func) {
* static int api_loaded = 0;
* if (api_loaded != 0) return 1; // APIs already resolved.
*
* myFunctionPointer = RedisModule_GetOtherModuleAPI("...");
* myFunctionPointer = RedisModule_GetSharedAPI("...");
* if (myFunctionPointer == NULL) return 0;
*
* return 1;
Expand Down

0 comments on commit 15dc12d

Please sign in to comment.