Skip to content

Commit

Permalink
Fix typo in cache docs (#7144)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5081679)
  • Loading branch information
GeorgeHahn authored and zwoop committed Sep 3, 2020
1 parent 71b4c62 commit 76f56b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/developer-guide/plugins/io/cache-api.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Example
In the example below, suppose there is a cache hit and the cache returns
a vconnection that enables you to read the document from cache. To do
this, you need to prepare a buffer (``cache_bufp``) to hold the
document; meanwhile, use ``TSVConnCachedObjectSizeGet`` to find out the
document; meanwhile, use ``TSVConnCacheObjectSizeGet`` to find out the
actual size of the document (``content_length``). Then, issue
``TSVConnRead`` to read the document with the total data length required
as ``content_length``. Assume the following data:
Expand All @@ -133,7 +133,7 @@ In the ``TS_CACHE_OPEN_READ`` handler:
.. code-block:: c
cache_vconnp = (TSVConn) data;
TSVConnCachedObjectSizeGet (cache_vconnp, &content_length);
content_length = TSVConnCacheObjectSizeGet (cache_vconnp);
cache_vio = TSVConnRead (cache_vconn, contp, cache_bufp, content_length);
In the ``TS_EVENT_VCONN_READ_READY`` handler:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ msgid ""
"In the example below, suppose there is a cache hit and the cache returns a "
"vconnection that enables you to read the document from cache. To do this, "
"you need to prepare a buffer (``cache_bufp``) to hold the document; "
"meanwhile, use ``TSVConnCachedObjectSizeGet`` to find out the actual size "
"meanwhile, use ``TSVConnCacheObjectSizeGet`` to find out the actual size "
"of the document (``content_length``). Then, issue ``TSVConnRead`` to read "
"the document with the total data length required as ``content_length``. "
"Assume the following data:"
Expand Down

0 comments on commit 76f56b8

Please sign in to comment.