Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 45a8311

Browse files
committed
Adjusted tree-recipes question to output error message when rejecting incorrect solution
1 parent 4c48646 commit 45a8311

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

competition/tree-recipes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "postfix-to-prefix"
2+
name = "tree-recipes"
33
version = "0.1.0"
44
edition = "2021"
55

competition/tree-recipes/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ fn main() {
137137
if provided_answer.as_str() == solution {
138138
exit(0);
139139
} else {
140+
eprintln!("Your answer was incorrect.");
140141
exit(1);
141142
}
142143
}

0 commit comments

Comments
 (0)