Skip to content

Commit db51785

Browse files
committed
chore: update README.md to mention about include_str
1 parent d055ca0 commit db51785

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
1. Clone template
44
2. Replace all `xxxx` with current year (do not accidentally replace content inside `actual_inputs` folder!)
5-
3. Add `INPUT_REPO_TOKEN` secret with access to `actual_inputs` folder so that CI can access the inputs
5+
3. Update the `src/bin/empty/main.rs` `include_str!()` macro to use the correct year.
6+
4. Add `INPUT_REPO_TOKEN` secret with access to `actual_inputs` folder so that CI can access the inputs
67
* Just "Contents - Read-only" access for the input repo is sufficient

src/bin/empty/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ACTUAL_INPUT: &str = include_str!("../../../actual_inputs/2023/01/input.txt");
1+
const ACTUAL_INPUT: &str = include_str!("../../../actual_inputs/2015/01/input.txt");
22

33
fn p1(input: &str) -> String {
44
let _input = input.trim();

0 commit comments

Comments
 (0)