From bf8c97ffe05b42e466563a5c8c593786bb3a4a0e Mon Sep 17 00:00:00 2001 From: soukyo Date: Mon, 24 Apr 2017 01:05:54 +0800 Subject: [PATCH] Update ch11-01-writing-tests.md Small correction for custom failure message of `greeting_contains_name` --- second-edition/src/ch11-01-writing-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second-edition/src/ch11-01-writing-tests.md b/second-edition/src/ch11-01-writing-tests.md index 04b9463d1..05de09ec3 100644 --- a/second-edition/src/ch11-01-writing-tests.md +++ b/second-edition/src/ch11-01-writing-tests.md @@ -594,7 +594,7 @@ Now if we run the test again, we'll get a much more informative error message: ```text ---- tests::greeting_contains_name stdout ---- - thread 'tests::greeting_contains_name' panicked at 'Result did not contain + thread 'tests::greeting_contains_name' panicked at 'Greeting did not contain name, value was `Hello`', src/lib.rs:12 note: Run with `RUST_BACKTRACE=1` for a backtrace. ```