From e45e930602c829ae33c1edadd56160cb97ead5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Sat, 29 Oct 2022 17:25:11 +0200 Subject: [PATCH] feat: clearly mark template code --- src/bin/download.rs | 4 ++++ src/bin/scaffold.rs | 4 ++++ src/helpers.rs | 2 +- src/lib.rs | 3 ++- src/main.rs | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/bin/download.rs b/src/bin/download.rs index f10aab3..881f6af 100644 --- a/src/bin/download.rs +++ b/src/bin/download.rs @@ -1,3 +1,7 @@ +/* + * This file contains template code. + * There is no need to edit this file unless you want to change template functionality. + */ use std::io::Write; use std::path::PathBuf; use std::{env::temp_dir, io, process::Command}; diff --git a/src/bin/scaffold.rs b/src/bin/scaffold.rs index c33a400..89d4bd3 100644 --- a/src/bin/scaffold.rs +++ b/src/bin/scaffold.rs @@ -1,3 +1,7 @@ +/* + * This file contains template code. + * There is no need to edit this file unless you want to change template functionality. + */ use std::{ fs::{File, OpenOptions}, io::Write, diff --git a/src/helpers.rs b/src/helpers.rs index 1a515ea..d32ca54 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -1,4 +1,4 @@ /* * Use this file if you want to extract helpers from your solutions. - * Example import from this file: `use aoc::helpers::example_fn;` + * Example import from this file: `use aoc::helpers::example_fn;`. */ diff --git a/src/lib.rs b/src/lib.rs index 6fbbd71..f15e303 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ /* - * This file contains template helpers. + * This file contains template code. + * There is no need to edit this file unless you want to change template functionality. * Prefer `./helpers.rs` if you want to extract code from your solutions. */ use std::env; diff --git a/src/main.rs b/src/main.rs index 298443d..cc04506 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ /* * This file contains template code. - * Unless you want to change how solutions are invoked, this file does not need to be edited. + * There is no need to edit this file unless you want to change template functionality. */ use aoc::{ANSI_BOLD, ANSI_ITALIC, ANSI_RESET}; use std::process::Command;