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

Ján Tomko jtomko at redhat.com
Tue Nov 12 15:47:00 UTC 2019

Wrap the 'g_renew()' call for VIR_SHRINK_N in <code>.

Signed-off-by: Ján Tomko <jtomko at 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><code>g_ptr_array_add</code> or <code>g_byte_array_append</code></td></tr>

More information about the libvir-list mailing list