mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 04:14:11 +02:00
docs: let go of *
Since we are no longer using sgml mode, using /* */ to escape block comments inside examples does not work anymore. Switch to using line comments with //
This commit is contained in:
@@ -189,14 +189,14 @@ g_slist_free_full (GSList *list,
|
||||
* the elements and reverse the list when all elements have been added.
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* /* Notice that these are initialized to the empty list. */
|
||||
* // Notice that these are initialized to the empty list.
|
||||
* GSList *list = NULL, *number_list = NULL;
|
||||
*
|
||||
* /* This is a list of strings. */
|
||||
* // This is a list of strings.
|
||||
* list = g_slist_append (list, "first");
|
||||
* list = g_slist_append (list, "second");
|
||||
*
|
||||
* /* This is a list of integers. */
|
||||
* // This is a list of integers.
|
||||
* number_list = g_slist_append (number_list, GINT_TO_POINTER (27));
|
||||
* number_list = g_slist_append (number_list, GINT_TO_POINTER (14));
|
||||
* ]|
|
||||
@@ -237,7 +237,7 @@ g_slist_append (GSList *list,
|
||||
* may have changed, so make sure you store the new value.
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* /* Notice that it is initialized to the empty list. */
|
||||
* // Notice that it is initialized to the empty list.
|
||||
* GSList *list = NULL;
|
||||
* list = g_slist_prepend (list, "last");
|
||||
* list = g_slist_prepend (list, "first");
|
||||
|
Reference in New Issue
Block a user