From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 06 11:06:52 2021 Received: (at submit) by debbugs.gnu.org; 6 Aug 2021 15:06:52 +0000 Received: from localhost ([127.0.0.1]:51159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC1Qx-0004Ve-OR for submit@debbugs.gnu.org; Fri, 06 Aug 2021 11:06:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:46474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC1Qv-0004VW-Kc for submit@debbugs.gnu.org; Fri, 06 Aug 2021 11:06:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1Qv-0007PH-54 for bug-guile@gnu.org; Fri, 06 Aug 2021 11:06:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1Qp-0005oM-Qp for bug-guile@gnu.org; Fri, 06 Aug 2021 11:06:48 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3016B240101 for ; Fri, 6 Aug 2021 17:06:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1628262399; bh=rHvExhOtPswvNL/JL6UHNSxIifAr2IBx4nEpmbutZ+A=; h=From:To:Subject:Date:From; b=Xlt9clgU3YKSO8QH1Cenyl1QXb6RaK4dxNHw0aW241kfBkzACfY6++KPIVUOsuN6y 48OBKWa9rl0954vrKJ7zuw5G39cohIoBzHFXwNdUBMGygpSDWxmSz4kbIU8QvTCmp8 nfr7hMfxYuvI3CUre/MzNW0Ex4pQ0aw2lCOWIJzl2x27nayRYt4Oo5Vg/5judwlzj3 71e+FBGpEU1b0GGAMNRXFN91srjTkJpoJpvqzh4jfQJD0h4elT/G8yLdtd5Sh30pM3 YIrwnkU7WvXBWtQUHtkC0DJ+Gqbq7POXSUZfieUv8XMCXs17Pzr/Y3Bf7p1GmbI7KB /AvVQla3kolhA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gh82P6PFcz6tmY for ; Fri, 6 Aug 2021 17:06:37 +0200 (CEST) From: Alexandr Vityazev To: bug-guile@gnu.org Subject: [PATCH] api-control: Fix misprint in code example. Date: Fri, 06 Aug 2021 15:06:56 +0000 Message-ID: <875ywifw8f.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=avityazev@posteo.org; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * doc/ref/api-control.texi (Simple Conditional Evaluation): Correct the typo in the example unless form. Delete trailing whitespaces. --- doc/ref/api-control.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi index 5df5344c5..6c87811d0 100644 --- a/doc/ref/api-control.texi +++ b/doc/ref/api-control.texi @@ -154,7 +154,7 @@ documentation: (define-syntax-rule (when test stmt stmt* ...) (if test (begin stmt stmt* ...))) -(define-syntax-rule (unless condition stmt stmt* ...) +(define-syntax-rule (unless test stmt stmt* ...) (if (not test) (begin stmt stmt* ...))) @end example @@ -1657,12 +1657,12 @@ scm_foo (SCM s1, SCM s2) c_s1 = scm_to_locale_string (s1); - /* Call 'free (c_s1)' when the dynwind context is left. + /* Call 'free (c_s1)' when the dynwind context is left. */ scm_dynwind_unwind_handler (free, c_s1, SCM_F_WIND_EXPLICITLY); c_s2 = scm_to_locale_string (s2); - + /* Same as above, but more concisely. */ scm_dynwind_free (c_s2); @@ -2312,7 +2312,7 @@ causing a segmentation fault. Guile provides some macros to make this easier. @deftypefn Macro void SCM_ASSERT (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}) -@deftypefnx Macro void SCM_ASSERT_TYPE (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}, const char *@var{expected}) +@deftypefnx Macro void SCM_ASSERT_TYPE (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}, const char *@var{expected}) If @var{test} is zero, signal a ``wrong type argument'' error, attributed to the subroutine named @var{subr}, operating on the value @var{obj}, which is the @var{position}'th argument of @var{subr}. -- 2.32.0 -- Alexandr Vityazev