diff options
| author | zydxhs <johnsmithcry@gmail.com> | 2022-02-04 22:00:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 15:00:24 +0100 |
| commit | cbcde345409c3e550112e449242848eaa3391bb6 (patch) | |
| tree | 828eb52f79f5682a8d326f0d320b24bd85685ff9 /exercises/error_handling | |
| parent | 71a06044e6a96ff756dc31d7b0ed665ae4badb57 (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.rs | 1 |
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()) ); } |
