From ca963dec51b1f7f255965f1822cfdb2a678ed4cc Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Mon, 24 Dec 2007 08:14:33 +0000 Subject: [PATCH] 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 --- docs/reference/ChangeLog | 7 +++++++ docs/reference/glib/tmpl/memory.sgml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 4dce1265..a363f001 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 904bd8f7..90df4f88 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 -- 2.34.1