Skip to content

Commit 632caa5

Browse files
committed
restructure
1 parent 212190c commit 632caa5

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
```
2-
rustc {day}/1.rs --out-dir {day}/result
2+
cargo run
33
```

day01/input.txt day01.txt

File renamed without changes.

main

409 KB
Binary file not shown.

day01/1.rs src/day01_1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::io::Result;
22

3-
fn main() -> Result<()> {
4-
let rows: u32 = std::fs::read_to_string("day01/input.txt")?
3+
pub fn solve() -> Result<()> {
4+
let rows: u32 = std::fs::read_to_string("day01.txt")?
55
.split("\n")
66
.map(|f| {
77
f.chars()

src/main.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use std::io::Result;
2+
3+
mod day01_1;
4+
5+
fn main() -> Result<()> {
6+
let _ = day01_1::solve();
7+
8+
Ok(())
9+
}

0 commit comments

Comments
 (0)