Skip to content

Commit

Permalink
prog-mode: fix "docstring too wide" warning in .yas-setup.el
Browse files Browse the repository at this point in the history
Fixes a warning::
    snippets/prog-mode/.yas-setup.el:32:2: Warning: docstring wider than 80 characters
  • Loading branch information
Hi-Angel committed Jan 27, 2024
1 parent 441bad3 commit 8724246
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snippets/prog-mode/.yas-setup.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
(yas-s-trim comment-start))

(defun yas-trimmed-comment-end ()
"This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty.
Otherwise the reversed output of function `yas-trimmed-comment-start' is returned."
"This function returns `comment-end' trimmed by whitespaces if
`comment-end' is not empty. Otherwise the reversed output of
function `yas-trimmed-comment-start' is returned."
(if (eq (length comment-end) 0)
(yas-string-reverse (yas-trimmed-comment-start))
(yas-s-trim comment-end)))

0 comments on commit 8724246

Please sign in to comment.