]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix docstrings in last change to subr-x.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 22 Dec 2020 09:01:47 +0000 (09:01 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 22 Dec 2020 09:01:47 +0000 (09:01 +0000)
lisp/emacs-lisp/subr-x.el

index dc046c3d76aea271aaaa325b1f57a96ceb6678c3..09c4649817a6aa3864471b353566c0ac60590f67 100644 (file)
@@ -293,7 +293,7 @@ is returned unchanged.
 
 If STRING is longer than LENGTH, return a substring consisting of
 the first LENGTH characters of STRING.  If END is non-nil, return
-the last LENTGH characters instead."
+the last LENGTH characters instead."
   (unless (natnump length)
     (signal 'wrong-type-argument (list 'natnump length)))
   (cond
@@ -331,8 +331,8 @@ If STRING is longer than the absolute value of LENGTH, no padding
 is done.
 
 If START is nil (or not present), the padding is done to the end
-of the string, and non-nil, padding is done to the start of the
-string."
+of the string, and if non-nil, padding is done to the start of
+the string."
   (unless (natnump length)
     (signal 'wrong-type-argument (list 'natnump length)))
   (let ((pad-length (- length (length string))))