We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91973fd commit 27857f2Copy full SHA for 27857f2
2023/08/jacksonmowry.v
@@ -14,7 +14,9 @@ fn main() {
14
}
15
16
fn solver(filename string, part_2 bool) !i64 {
17
- directions, nodes := os.read_file(filename)!.split_once('\n\n')
+ directions, nodes := os.read_file(filename)!.split_once('\n\n') or {
18
+ return error('Failed to derive nodes from "${filename}"')
19
+ }
20
node_lines := nodes.split_into_lines()
21
mut node_map := map[string]Node{}
22
mut working_nodes := []string{}
0 commit comments