manual: Fix Wrong declaration of wcschr [BZ #24654]

Message ID CALkY8p-55nxUR6mqCw_PvLEDGJhcQY8ndKdM61A96nGdvgcoLg@mail.gmail.com
State Committed
Headers

Commit Message

Girish Joshi March 5, 2020, 8:25 a.m. UTC
  From c31372c69498467c1668fd6ce4d20272c22d6415 Mon Sep 17 00:00:00 2001
From: Girish Joshi <girish946@gmail.com>
Date: Thu, 5 Mar 2020 13:43:22 +0530
Subject: [PATCH] manual: Fix Wrong declaration of wcschr [BZ #24654]

---
 manual/string.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

 The @code{wcschr} function finds the first occurrence of the wide
  

Comments

Florian Weimer March 5, 2020, 8:33 a.m. UTC | #1
* Girish Joshi:

>>From c31372c69498467c1668fd6ce4d20272c22d6415 Mon Sep 17 00:00:00 2001
> From: Girish Joshi <girish946@gmail.com>
> Date: Thu, 5 Mar 2020 13:43:22 +0530
> Subject: [PATCH] manual: Fix Wrong declaration of wcschr [BZ #24654]
>
> ---
>  manual/string.texi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/manual/string.texi b/manual/string.texi
> index a1c58e58fa..c39c732ce4 100644
> --- a/manual/string.texi
> +++ b/manual/string.texi
> @@ -1778,7 +1778,7 @@ need that information, it is better (but less
> portable) to use
>  @code{strchrnul} than to search for it a second time.
>  @end deftypefun
>
> -@deftypefun {wchar_t *} wcschr (const wchar_t *@var{wstring}, int @var{wc})
> +@deftypefun {wchar_t *} wcschr (const wchar_t *@var{wstring}, wchar_t @var{wc})
>  @standards{ISO, wchar.h}
>  @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
>  The @code{wcschr} function finds the first occurrence of the wide

Thanks.

The patch looks okay, but it's been word-wrapped, so it doesn't apply
automatically.  I fixed this and pushed it (and also changed the
capitalization of the subject).
  
Girish Joshi March 5, 2020, 4:53 p.m. UTC | #2
Thanks Florian,

> The patch looks okay, but it's been word-wrapped, so it doesn't apply
> automatically.  I fixed this and pushed it (and also changed the
> capitalization of the subject).

From next time I'll keep these things in mind before posting the patch.

Girish Joshi
  

Patch

diff --git a/manual/string.texi b/manual/string.texi
index a1c58e58fa..c39c732ce4 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -1778,7 +1778,7 @@  need that information, it is better (but less
portable) to use
 @code{strchrnul} than to search for it a second time.
 @end deftypefun

-@deftypefun {wchar_t *} wcschr (const wchar_t *@var{wstring}, int @var{wc})
+@deftypefun {wchar_t *} wcschr (const wchar_t *@var{wstring}, wchar_t @var{wc})
 @standards{ISO, wchar.h}
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}