Skip to content

Commit c3feac1

Browse files
committed
Fill regular block comments correctly too, in addition to rustdoc comments
1 parent 18fad39 commit c3feac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,10 @@ the desired identifiers), but does not match type annotations \"foo::<\"."
10581058
(let ((result
10591059
;; Replace /* with same number of spaces
10601060
(replace-regexp-in-string
1061-
"\\(?:/\\*+\\)[!*]"
1061+
"\\(?:/\\*+\\)"
10621062
(lambda (s)
10631063
;; We want the * to line up with the first * of the comment start
1064-
(concat (make-string (- (length s) 2) ?\x20) "*"))
1064+
(concat (make-string (- (length s) 1) ?\x20) "*"))
10651065
line-start)))
10661066
;; Make sure we've got at least one space at the end
10671067
(if (not (= (aref result (- (length result) 1)) ?\x20))

0 commit comments

Comments
 (0)