about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2019-05-14 15:33:02 -0400
committerCarlos O'Donell <carlos@redhat.com>2019-05-14 15:56:56 -0400
commit6807f47b81bcae3874277f5480683ebeb7dfcf89 (patch)
treedb7dfe328a34d6e4b066b3bb5a11620f367c2b86
parentda2b83ef6ba6f4c974664f69e715cc85b9173938 (diff)
downloadglibc-6807f47b81bcae3874277f5480683ebeb7dfcf89.tar.gz
glibc-6807f47b81bcae3874277f5480683ebeb7dfcf89.tar.xz
glibc-6807f47b81bcae3874277f5480683ebeb7dfcf89.zip
manual: Adjust twalk_r documentation.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
-rw-r--r--ChangeLog5
-rw-r--r--manual/search.texi4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f2ed939a7..edfb9ad96b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-14  Carlos O'Donell  <carlos@redhat.com>
+
+	* manual/search.texi (Tree Search Function): Adjust twalk_r
+	documentation.
+
 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	[BZ #24544]
diff --git a/manual/search.texi b/manual/search.texi
index 979732f027..60c851229c 100644
--- a/manual/search.texi
+++ b/manual/search.texi
@@ -630,8 +630,8 @@ see the @code{twalk_r} function below.
 For each node in the tree with a node pointed to by @var{root}, the
 @code{twalk_r} function calls the function provided by the parameter
 @var{action}.  For leaf nodes the function is called exactly once with
-@var{value} set to @code{leaf}.  For internal nodes the function is
-called three times, setting the @var{value} parameter or @var{action} to
+@var{which} set to @code{leaf}.  For internal nodes the function is
+called three times, setting the @var{which} parameter of @var{action} to
 the appropriate value.  The @var{closure} parameter is passed down to
 each call of the @var{action} function, unmodified.