summaryrefslogtreecommitdiff
path: root/src/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.rs')
-rw-r--r--src/init.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.rs b/src/init.rs
index 9c7d10f..3970bb2 100644
--- a/src/init.rs
+++ b/src/init.rs
@@ -35,6 +35,11 @@ pub fn init() -> Result<()> {
.context("Failed to initialize the `rustlings/exercises` directory")?;
create_dir("solutions").context("Failed to create the `solutions/` directory")?;
+ fs::write(
+ "solutions/README.md",
+ include_bytes!("../solutions/README.md"),
+ )
+ .context("Failed to create the file rustlings/solutions/README.md")?;
for dir in EMBEDDED_FILES.exercise_dirs {
let mut dir_path = String::with_capacity(10 + dir.name.len());
dir_path.push_str("solutions/");