Fix formatting of examples.
authorMatthias Clasen <maclas@gmx.de>
Mon, 31 Mar 2003 22:51:28 +0000 (22:51 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 31 Mar 2003 22:51:28 +0000 (22:51 +0000)
2003-04-01  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/error_reporting.sgml:
* glib/tmpl/random_numbers.sgml:
* glib/tmpl/arrays_pointer.sgml:
* glib/tmpl/arrays.sgml: Fix formatting of examples.

docs/reference/ChangeLog
docs/reference/glib/tmpl/arrays.sgml
docs/reference/glib/tmpl/arrays_pointer.sgml
docs/reference/glib/tmpl/error_reporting.sgml
docs/reference/glib/tmpl/random_numbers.sgml

index fd5999c..bede9cd 100644 (file)
@@ -1,5 +1,12 @@
 2003-04-01  Matthias Clasen  <maclas@gmx.de>
 
+       * glib/tmpl/error_reporting.sgml: 
+       * glib/tmpl/random_numbers.sgml: 
+       * glib/tmpl/arrays_pointer.sgml: 
+       * glib/tmpl/arrays.sgml: Fix formatting of examples.
+
+2003-04-01  Matthias Clasen  <maclas@gmx.de>
+
        * glib/glib-sections.txt: Add g_string_chunk_insert_len.
 
 2003-03-28  Matthias Clasen  <maclas@gmx.de>
index 61babb3..4fefede 100644 (file)
@@ -44,7 +44,7 @@ To free an array, use g_array_free().
 
   for (i = 0; i &lt; 10000; i++)
     if (g_array_index (garray, gint, i) != i)
-      g_print ("ERROR: got %d instead of %d\n",
+      g_print ("ERROR: got &percnt;d instead of &percnt;d\n",
                g_array_index (garray, gint, i), i);
 
   g_array_free (garray, TRUE);
index d7c77ee..23fda03 100644 (file)
@@ -49,7 +49,7 @@ To free a pointer array, use g_ptr_array_free().
   g_ptr_array_add (gparray, (gpointer) string3);
 
   if (g_ptr_array_index (gparray, 0) != (gpointer) string1)
-    g_print ("ERROR: got %p instead of %p\n",
+    g_print ("ERROR: got &percnt;p instead of &percnt;p\n",
              g_ptr_array_index (gparray, 0), string1);
 
   g_ptr_array_free (gparray, TRUE);
index 5c1192b..c78bc87 100644 (file)
@@ -52,7 +52,7 @@ if (err != NULL)
   {
     /* Report error to user, and free error */
     g_assert (contents == NULL);
-    fprintf (stderr, "Unable to read file: %s\n", err->message);
+    fprintf (stderr, "Unable to read file: &percnt;s\n", err->message);
     g_error_free (err);
   } 
 else
@@ -115,7 +115,7 @@ foo_open_file (GError **error)
       g_set_error (error,
                    FOO_ERROR,                 /* error domain */
                    FOO_ERROR_BLAH,            /* error code */
-                   "Failed to open file: %s", /* error message format string */
+                   "Failed to open file: &percnt;s", /* error message format string */
                    g_strerror (errno));
       return -1;
     }
index 1975018..aa45fb5 100644 (file)
@@ -28,7 +28,7 @@ on all platforms. This can thus be used as a seed for e.g. games.
 <para>
 The <function>g_rand*_range</function> functions will return high quality
 equally distributed random numbers, whereas for example the
-<literal>(g_random_int()%%max)</literal> approach often doesn't
+<literal>(g_random_int()&percnt;max)</literal> approach often doesn't
 yield equally distributed numbers.
 </para>