git: 09bd51a1e06e - main - tsearch.3: Fix tdestroy(3) entries in NAME and SYNOPSIS

From: Aymeric Wibo <obiwac_at_FreeBSD.org>
Date: Wed, 18 Nov 2026 13:15:21 UTC
The branch main has been updated by obiwac:

URL: https://cgit.FreeBSD.org/src/commit/?id=09bd51a1e06ef49bc423d32b0dec27848c7f4b6d

commit 09bd51a1e06ef49bc423d32b0dec27848c7f4b6d
Author:     Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-11-17 16:06:58 +0000
Commit:     Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-11-18 13:14:38 +0000

    tsearch.3: Fix tdestroy(3) entries in NAME and SYNOPSIS
    
    Add tdestroy to the NAME section, remove a stray opening parenthesis
    from its node_free argument in the SYNOPSIS, and small grammar fix in
    STANDARDS.
    
    Fixes:          b0d4b059cf84 ("tdestroy(3) man page")
    MFC after:      3 days
    Sponsored by:   Klara, Inc.
---
 lib/libc/stdlib/tsearch.3 | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3
index f412c37a4ef0..936036e5f51a 100644
--- a/lib/libc/stdlib/tsearch.3
+++ b/lib/libc/stdlib/tsearch.3
@@ -26,17 +26,18 @@
 .\"
 .\"	OpenBSD: tsearch.3,v 1.2 1998/06/21 22:13:49 millert Exp
 .\"
-.Dd June 4, 2017
+.Dd November 17, 2026
 .Dt TSEARCH 3
 .Os
 .Sh NAME
-.Nm tsearch , tfind , tdelete , twalk
+.Nm tsearch , tfind , tdelete , twalk , tdestroy
 .Nd manipulate binary search trees
 .Sh SYNOPSIS
 .In search.h
 .Ft void *
 .Fn tdelete "const void * restrict key" "posix_tnode ** restrict rootp" "int (*compar) (const void *, const void *)"
-.Fn tdestroy "posix_tnode *root" "(void (*node_free)(void *)"
+.Ft void
+.Fn tdestroy "posix_tnode *root" "void (*node_free)(void *)"
 .Ft posix_tnode *
 .Fn tfind "const void *key" "posix_tnode * const *rootp" "int (*compar) (const void *, const void *)"
 .Ft posix_tnode *
@@ -214,7 +215,7 @@ functions conform to
 .St -p1003.1-2008 .
 The
 .Fn tdestroy
-function is the glibc extension.
+function is a glibc extension.
 .Pp
 The
 .Fa posix_tnode