diff --git a/apidoc/html/index.html b/apidoc/html/index.html
index ce123e3..8c195f9 100644
--- a/apidoc/html/index.html
+++ b/apidoc/html/index.html
@@ -350,7 +350,7 @@
else {
-
+ stringValue = (
char *) r->
value;
diff --git a/doc/README.md b/doc/README.md
index 16626e3..0f12095 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -347,7 +347,7 @@ as is (without making copies), e.g.:
else {
// Set 'stringValue' and dereference the value field in the RESP so it's not
// destroyed with the RESP itself.
- stringValue = r->value;
+ stringValue = (char *) r->value;
r->value = NULL;
redisxDestroyRESP(r); // The 'stringValue' is still a valid pointer after!