Skip to content

Commit 71f96f9

Browse files
Run v fmt
1 parent b700f1f commit 71f96f9

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

2024/v/day_01.v

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@ module day_01
22

33
import os
44

5-
const input_path = "../input/01.txt"
5+
const input_path = '../input/01.txt'
66

77
@[params]
88
struct Config {
9-
input ?string
9+
input ?string
1010
}
1111

1212
fn part_one(config Config) !int {
13-
input := config.input or {
14-
os.read_file(input_path)!
15-
}
13+
input := config.input or { os.read_file(input_path)! }
1614

1715
return input.len
1816
}
1917

2018
fn part_two(config Config) !int {
21-
input := config.input or {
22-
os.read_file(input_path)!
23-
}
24-
19+
input := config.input or { os.read_file(input_path)! }
20+
2521
return input.len
2622
}

2024/v/day_01_test.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module day_01
33
import os
44

55
fn test_part_one() ! {
6-
assert part_one(input: "Hello, World!")! == 13
6+
assert part_one(input: 'Hello, World!')! == 13
77
}
88

99
fn test_part_two() {

0 commit comments

Comments
 (0)