mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
docs: Wrap a code example more tightly to reduce minimum page width
Otherwise the page has a horizontal scrollbar in Devhelp on some machines. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2414
This commit is contained in:
parent
04739eb4fd
commit
be24b0c622
@ -201,8 +201,11 @@ How to run and debug your GLib application
|
||||
reproduced with <literal>G_SLICE=always-malloc</literal>, but will
|
||||
be caught by <literal>G_SLICE=debug-blocks</literal> is as follows:
|
||||
<programlisting>
|
||||
void *slist = g_slist_alloc (); /* void* gives up type-safety */
|
||||
g_list_free (slist); /* corruption: sizeof (GSList) != sizeof (GList) */
|
||||
/* void* gives up type-safety */
|
||||
void *slist = g_slist_alloc ();
|
||||
|
||||
/* corruption: sizeof (GSList) != sizeof (GList) */
|
||||
g_list_free (slist);
|
||||
</programlisting></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Loading…
Reference in New Issue
Block a user