From patchwork Thu Nov 1 00:53:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 29987 Received: (qmail 54213 invoked by alias); 1 Nov 2018 00:53:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 54188 invoked by uid 89); 1 Nov 2018 00:53:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=grammatical, parenthesis, H*F:D*br, our X-HELO: mo20.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: Subject: [PATCH 1/2] Fix typo in the documentation of gcvt Date: Wed, 31 Oct 2018 21:53:29 -0300 Message-ID: <20181101005330.19692-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 5661024731950796483 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrieeggdeflecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecu I wasn't sure if this counts as a trivial fix per our rules [1]. The rules explicitly state that fixing a spelling or grammatical error counts as a trivial fix, but they do not state anything about typos. If this commit could be considered a trivial fix, I will also update the wiki. [1] https://sourceware.org/glibc/wiki/Consensus#Trivial_Bug-Fix_Changes -- 8< -- In the description of gcvt, add missing closing parenthesis in the comparison with sprintf. * manual/arith.texi (gcvt): Add missing closing parenthesis. --- manual/arith.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/arith.texi b/manual/arith.texi index 5e123c3ccd..5080abf063 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -3078,7 +3078,7 @@ to @code{fcvt}. @c gcvt calls sprintf, that ultimately calls vfprintf, which malloc()s @c args_value if it's too large, but gcvt never exercises this path. @code{gcvt} is functionally equivalent to @samp{sprintf(buf, "%*g", -ndigit, value}. It is provided only for compatibility's sake. It +ndigit, value)}. It is provided only for compatibility's sake. It returns @var{buf}. If @var{ndigit} decimal digits would exceed the precision of a