diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 4dce12651..a363f0019 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,10 @@ +2007-12-24 Mathias Hasselmann + + Fix typo in g_try_new0 docs (#505195, Felix Riemann). + + * docs/reference/glib/tmpl/memory.sgml: Reference + n_structs, instead of non-existant n_counts argument. + 2007-12-22 Matthias Clasen * gobject/tmpl/gtypemodule.sgml: Fix a typo diff --git a/docs/reference/glib/tmpl/memory.sgml b/docs/reference/glib/tmpl/memory.sgml index 904bd8f79..90df4f882 100644 --- a/docs/reference/glib/tmpl/memory.sgml +++ b/docs/reference/glib/tmpl/memory.sgml @@ -101,7 +101,7 @@ Attempts to allocate @n_structs elements of type @struct_type, initialized to 0's, and returns %NULL on failure. Contrast with g_new0(), which aborts the program on failure. The returned pointer is cast to a pointer to the given type. -If @n_counts is 0 it returns %NULL. +The function returns %NULL when @n_structs is 0. @struct_type: the type of the elements to allocate