diff --git a/src/module.c b/src/module.c index 724b877f6..084ee5fd5 100644 --- a/src/module.c +++ b/src/module.c @@ -2297,7 +2297,7 @@ RedisModuleString *RM_CreateStringPrintf(RedisModuleCtx *ctx, const char *fmt, . } -/* Like RedisModule_CreatString(), but creates a string starting from a `long long` +/* Like RedisModule_CreateString(), but creates a string starting from a `long long` * integer instead of taking a buffer and its length. * * The returned string must be released with RedisModule_FreeString() or by @@ -2311,7 +2311,7 @@ RedisModuleString *RM_CreateStringFromLongLong(RedisModuleCtx *ctx, long long ll return RM_CreateString(ctx,buf,len); } -/* Like RedisModule_CreatString(), but creates a string starting from a double +/* Like RedisModule_CreateString(), but creates a string starting from a double * instead of taking a buffer and its length. * * The returned string must be released with RedisModule_FreeString() or by @@ -2322,7 +2322,7 @@ RedisModuleString *RM_CreateStringFromDouble(RedisModuleCtx *ctx, double d) { return RM_CreateString(ctx,buf,len); } -/* Like RedisModule_CreatString(), but creates a string starting from a long +/* Like RedisModule_CreateString(), but creates a string starting from a long * double. * * The returned string must be released with RedisModule_FreeString() or by @@ -2337,7 +2337,7 @@ RedisModuleString *RM_CreateStringFromLongDouble(RedisModuleCtx *ctx, long doubl return RM_CreateString(ctx,buf,len); } -/* Like RedisModule_CreatString(), but creates a string starting from another +/* Like RedisModule_CreateString(), but creates a string starting from another * RedisModuleString. * * The returned string must be released with RedisModule_FreeString() or by diff --git a/utils/generate-module-api-doc.rb b/utils/generate-module-api-doc.rb index d4282cbfa..8829434bc 100755 --- a/utils/generate-module-api-doc.rb +++ b/utils/generate-module-api-doc.rb @@ -11,12 +11,13 @@ def markdown(s) s.chop! while s[-1] == "\n" || s[-1] == " " lines = s.split("\n") newlines = [] - # Fix some markdown, except in code blocks indented by 4 spaces. + # Fix some markdown lines.each{|l| + # Rewrite RM_Xyz() to RedisModule_Xyz(). + l = l.gsub(/(?