; Fix documentation of recent changes
* etc/NEWS: * doc/lispref/numbers.texi (Arithmetic Operations): Fix wording and markup.
This commit is contained in:
parent
03bc51349f
commit
4abeb75a51
2 changed files with 7 additions and 7 deletions
|
@ -683,17 +683,17 @@ This function returns @var{number-or-marker} minus 1.
|
|||
|
||||
@defmac incf place &optional delta
|
||||
This macro increments the number stored in @var{place} by one, or
|
||||
by @var{delta} if specified. The incremented value is returned.
|
||||
by @var{delta} if specified. It returns the incremented value.
|
||||
|
||||
@var{place} can be a symbol or a generalized variable, @xref{Generalized
|
||||
Variables}. For example, @code{(incf i)} is equivalent to
|
||||
@code{(setq i (1+ i))}, and @code{(incf (car x) 2)} is equivalent to
|
||||
@code{(setcar x (+ (car x) 2))}.
|
||||
@var{place} can be a symbol or a generalized variable,
|
||||
@pxref{Generalized Variables}. For example, @w{@samp{(incf i)}} is
|
||||
equivalent to @w{@samp{(setq i (1+ i))}}, and @w{@samp{(incf (car x)
|
||||
2)}} is equivalent to @w{@samp{(setcar x (+ (car x) 2))}}.
|
||||
@end defmac
|
||||
|
||||
@defmac decf place &optional delta
|
||||
This macro decrements the number stored in @var{place} by one, or
|
||||
by @var{delta} if specified. The decremented value is returned.
|
||||
by @var{delta} if specified. It returns the decremented value.
|
||||
@end defmac
|
||||
|
||||
@defun + &rest numbers-or-markers
|
||||
|
|
2
etc/NEWS
2
etc/NEWS
|
@ -1363,7 +1363,7 @@ change it globally with:
|
|||
(set-default-toplevel-value 'lexical-binding t)
|
||||
|
||||
+++
|
||||
*** New functions 'incf' and 'decf'.
|
||||
*** New macros 'incf' and 'decf'.
|
||||
They increment or decrement the value stored in a variable (a symbol),
|
||||
or in a generalized variable.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue