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.

svn path=/trunk/; revision=6196
This commit is contained in:
Mathias Hasselmann 2007-12-24 08:14:33 +00:00
parent 33857bef6f
commit ca963dec51
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-12-24 Mathias Hasselmann <mathias@openismus.com>
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 <mclasen@redhat.com>
* gobject/tmpl/gtypemodule.sgml: Fix a typo

View File

@ -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.
</para>
@struct_type: the type of the elements to allocate