From: Eli Zaretskii Date: Sat, 28 May 2022 07:55:01 +0000 (+0300) Subject: Fix documentation of 'string-pad' X-Git-Tag: emacs-28.1.90~62 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ebea3415b0720e900867356c334e201e531401b5;p=emacs.git Fix documentation of 'string-pad' * doc/lispref/strings.texi (Creating Strings): Fix description of 'string-pad'. (Bug#55688) --- diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 2810f686eb7..3d8db985e9c 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -440,12 +440,12 @@ Split @var{string} into a list of strings on newline boundaries. If @end defun @defun string-pad string length &optional padding start -Pad @var{string} to the be of @var{length} using @var{padding} as the -padding character (defaulting to the space character). If -@var{string} is shorter than @var{length}, no padding is done. If -@var{start} is @code{nil} (or not present), the padding is done to the -end of the string, and if it's non-@code{nil}, to the start of the -string. +Pad @var{string} to be of the given @var{length} using @var{padding} +as the padding character. @var{padding} defaults to the space +character. If @var{string} is longer than @var{length}, no padding is +done. If @var{start} is @code{nil} or omitted, the padding is +appended to the characters of @var{string}, and if it's +non-@code{nil}, the padding is prepended to @var{string}'s characters. @end defun @defun string-chop-newline string