File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,21 @@ module day_01
2
2
3
3
import os
4
4
5
- const input_path = " ../input/01.txt"
5
+ const input_path = ' ../input/01.txt'
6
6
7
7
@[params]
8
8
struct Config {
9
- input ? string
9
+ input ? string
10
10
}
11
11
12
12
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)! }
16
14
17
15
return input.len
18
16
}
19
17
20
18
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
+
25
21
return input.len
26
22
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module day_01
3
3
import os
4
4
5
5
fn test_part_one () ! {
6
- assert part_one (input: " Hello, World!" )! == 13
6
+ assert part_one (input: ' Hello, World!' )! == 13
7
7
}
8
8
9
9
fn test_part_two () {
You can’t perform that action at this time.
0 commit comments