unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#49911: [PATCH] api-control: Fix misprint in code example.
@ 2021-08-06 15:06 Alexandr Vityazev
  0 siblings, 0 replies; only message in thread
From: Alexandr Vityazev @ 2021-08-06 15:06 UTC (permalink / raw)
  To: 49911

* 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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-06 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06 15:06 bug#49911: [PATCH] api-control: Fix misprint in code example Alexandr Vityazev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).