Correct RM_GetSharedAPI documentation. (#11601)

Fix wrong API name i example doc
This commit is contained in:
Yossi Gottlieb 2022-12-08 20:22:31 +02:00 committed by GitHub
parent fa5474e153
commit 10e4f44dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;