Unverified Commit 10e4f44d authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

Correct RM_GetSharedAPI documentation. (#11601)

Fix wrong API name i example doc
parent fa5474e1
...@@ -9877,7 +9877,7 @@ int RM_ExportSharedAPI(RedisModuleCtx *ctx, const char *apiname, void *func) { ...@@ -9877,7 +9877,7 @@ int RM_ExportSharedAPI(RedisModuleCtx *ctx, const char *apiname, void *func) {
* static int api_loaded = 0; * static int api_loaded = 0;
* if (api_loaded != 0) return 1; // APIs already resolved. * if (api_loaded != 0) return 1; // APIs already resolved.
* *
* myFunctionPointer = RedisModule_GetOtherModuleAPI("..."); * myFunctionPointer = RedisModule_GetSharedAPI("...");
* if (myFunctionPointer == NULL) return 0; * if (myFunctionPointer == NULL) return 0;
* *
* return 1; * return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment