Skip to content

Commit 37767cf

Browse files
committed
fmt: fix comments.v
1 parent 820f53c commit 37767cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

vlib/v/fmt/comments.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn (mut f Fmt) comment(node ast.Comment, options CommentsOptions) {
5252
}
5353
out_s += s
5454
}
55-
if !is_separate_line { // && f.indent > 0 {
55+
if !is_separate_line && f.indent > 0 {
5656
f.remove_new_line() // delete the generated \n
5757
f.write(' ')
5858
}

vlib/v/fmt/tests/donut_card_expected.vv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import strings
44
import time { sleep }
55

66
const alt = '.,-~:;=!*#$@'
7-
87
fn rd(cs int, ls int, a f64, b f64) {
98
tt_spacing, p_spacing := 0.07, 0.02
109
r1, r2, k2 := 1, 2, 5

0 commit comments

Comments
 (0)