summaryrefslogtreecommitdiff
path: root/exercises/error_handling
diff options
context:
space:
mode:
authorzydxhs <johnsmithcry@gmail.com>2022-02-04 22:00:24 +0800
committerGitHub <noreply@github.com>2022-02-04 15:00:24 +0100
commitcbcde345409c3e550112e449242848eaa3391bb6 (patch)
tree828eb52f79f5682a8d326f0d320b24bd85685ff9 /exercises/error_handling
parent71a06044e6a96ff756dc31d7b0ed665ae4badb57 (diff)
fix(errors1): Add a comment to make the purpose more clear (#486)
Signed-off-by: zydxhs <johnsmithcry@163.com>
Diffstat (limited to 'exercises/error_handling')
-rw-r--r--exercises/error_handling/errors1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs
index 9c24d85..5844a49 100644
--- a/exercises/error_handling/errors1.rs
+++ b/exercises/error_handling/errors1.rs
@@ -36,6 +36,7 @@ mod tests {
fn explains_why_generating_nametag_text_fails() {
assert_eq!(
generate_nametag_text("".into()),
+ // Don't change this line
Err("`name` was empty; it must be nonempty.".into())
);
}