Skip to content

Commit c4ae9cf

Browse files
committed
run v fmt -w .
1 parent b026ad9 commit c4ae9cf

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

2023/02/brayevalerien/part1.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ fn Game.new(s string) Game {
3737
blue = math.max(blue, count_blue)
3838
}
3939
return Game{
40-
id: id.int()
41-
red: red
40+
id: id.int()
41+
red: red
4242
green: green
43-
blue: blue
43+
blue: blue
4444
}
4545
}
4646

2023/02/brayevalerien/part2.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ fn Game.new(s string) Game {
3737
blue = math.max(blue, count_blue)
3838
}
3939
return Game{
40-
id: id.int()
41-
red: red
40+
id: id.int()
41+
red: red
4242
green: green
43-
blue: blue
43+
blue: blue
4444
}
4545
}
4646

2023/03/brayevalerien/part1.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ fn Schematic.new(lines []string) Schematic {
2525
panic('Cannot build grid from input with empty first line.')
2626
}
2727
return Schematic{
28-
grid: lines
29-
width: lines[0].len
28+
grid: lines
29+
width: lines[0].len
3030
height: lines.len
3131
}
3232
}
3333

3434
fn Cursor.new(schematic Schematic) Cursor {
3535
return Cursor{
3636
schematic: schematic
37-
x: 0
38-
y: 0
37+
x: 0
38+
y: 0
3939
}
4040
}
4141

2023/03/brayevalerien/part2.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ fn Schematic.new(lines []string) Schematic {
2626
panic('Cannot build grid from input with empty first line.')
2727
}
2828
return Schematic{
29-
grid: lines
30-
width: lines[0].len
29+
grid: lines
30+
width: lines[0].len
3131
height: lines.len
3232
}
3333
}
3434

3535
fn Cursor.new(schematic Schematic) Cursor {
3636
return Cursor{
3737
schematic: schematic
38-
x: 0
39-
y: 0
38+
x: 0
39+
y: 0
4040
}
4141
}
4242

2023/04/brayevalerien/part1.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ fn card_value(winning []int, nums []int) int {
5050
if matched == 0 {
5151
return 0
5252
}
53-
return int(math.pow(2, matched-1))
53+
return int(math.pow(2, matched - 1))
5454
}

0 commit comments

Comments
 (0)