From a279f9b371fc50445e367d7a591ec01250caac0c Mon Sep 17 00:00:00 2001 From: zydxhs <johnsmithcry@163.com> Date: Sun, 2 Aug 2020 22:58:46 +0800 Subject: [PATCH] Add a comment to make the purpose more clearly Signed-off-by: zydxhs <johnsmithcry@163.com> --- exercises/error_handling/errors1.rs | 1 + 1 file changed, 1 insertion(+) 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()) ); }