Skip to content

Commit

Permalink
run v fmt -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 30, 2024
1 parent b026ad9 commit c4ae9cf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions 2023/02/brayevalerien/part1.v
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ fn Game.new(s string) Game {
blue = math.max(blue, count_blue)
}
return Game{
id: id.int()
red: red
id: id.int()
red: red
green: green
blue: blue
blue: blue
}
}

Expand Down
6 changes: 3 additions & 3 deletions 2023/02/brayevalerien/part2.v
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ fn Game.new(s string) Game {
blue = math.max(blue, count_blue)
}
return Game{
id: id.int()
red: red
id: id.int()
red: red
green: green
blue: blue
blue: blue
}
}

Expand Down
8 changes: 4 additions & 4 deletions 2023/03/brayevalerien/part1.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ fn Schematic.new(lines []string) Schematic {
panic('Cannot build grid from input with empty first line.')
}
return Schematic{
grid: lines
width: lines[0].len
grid: lines
width: lines[0].len
height: lines.len
}
}

fn Cursor.new(schematic Schematic) Cursor {
return Cursor{
schematic: schematic
x: 0
y: 0
x: 0
y: 0
}
}

Expand Down
8 changes: 4 additions & 4 deletions 2023/03/brayevalerien/part2.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ fn Schematic.new(lines []string) Schematic {
panic('Cannot build grid from input with empty first line.')
}
return Schematic{
grid: lines
width: lines[0].len
grid: lines
width: lines[0].len
height: lines.len
}
}

fn Cursor.new(schematic Schematic) Cursor {
return Cursor{
schematic: schematic
x: 0
y: 0
x: 0
y: 0
}
}

Expand Down
2 changes: 1 addition & 1 deletion 2023/04/brayevalerien/part1.v
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ fn card_value(winning []int, nums []int) int {
if matched == 0 {
return 0
}
return int(math.pow(2, matched-1))
return int(math.pow(2, matched - 1))
}

0 comments on commit c4ae9cf

Please sign in to comment.