[libvirt] [PATCH] docs: hacking: add missing code element

Ján Tomko posted 1 patch 4 years, 5 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/26791f39c042f093ed85d42962bb418f79ed35b5.1573573608.git.jtomko@redhat.com
docs/hacking.html.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH] docs: hacking: add missing code element
Posted by Ján Tomko 4 years, 5 months ago
Wrap the 'g_renew()' call for VIR_SHRINK_N in <code>.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
Pushed as trivial.

 docs/hacking.html.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/hacking.html.in b/docs/hacking.html.in
index 5d13e4f71d..06deab9e90 100644
--- a/docs/hacking.html.in
+++ b/docs/hacking.html.in
@@ -1056,7 +1056,7 @@ BAD:
             <td>the newly added memory is not zeroed</td></tr>
         <tr><td><code>VIR_EXPAND_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
             <td>zero the new memory manually or use an array type</td></tr>
-        <tr><td><code>VIR_SHRINK_N</code></td><td>g_renew(var_t, ptr, n)</td>
+        <tr><td><code>VIR_SHRINK_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
             <td></td></tr>
         <tr><td><code>VIR_APPEND_ELEMENT</code></td><td><code>g_array_append_val</code></td>
             <td><code>g_ptr_array_add</code> or <code>g_byte_array_append</code></td></tr>
-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list