Skip to content

Commit 873cbdd

Browse files
committed
Tweak docstring of cider-docstring--trim
1 parent 4dc4d39 commit 873cbdd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cider-docstring.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ Prioritize rendering as much as possible while staying within `cider-docstring-m
142142
first-attempt)))
143143

144144
(cl-defun cider-docstring--trim (string &optional (max-lines cider-docstring-max-lines))
145-
"Returns up to the first MAX-LINES lines of string STRING,
146-
adding \"...\" if trimming was necessary.
147-
148-
MAX-LINES defaults to `cider-docstring-max-lines'."
145+
"Return MAX-LINES of STRING, adding \"...\" if trimming was necessary."
149146
(let* ((lines (split-string string "\n"))
150147
(string (string-join (seq-take lines max-lines) "\n")))
151148
(concat string (when (> (length lines) max-lines) "..."))))

0 commit comments

Comments
 (0)