From 816dc8f0178d22157180f4b4c4a9113a0d38bdf3 Mon Sep 17 00:00:00 2001 From: Tiger Taylor Date: Mon, 28 Aug 2023 21:55:30 +0100 Subject: [PATCH] Update ch11-02-running-tests.md --- src/ch11-02-running-tests.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ch11-02-running-tests.md b/src/ch11-02-running-tests.md index d3f13e096e..006792b502 100644 --- a/src/ch11-02-running-tests.md +++ b/src/ch11-02-running-tests.md @@ -49,11 +49,11 @@ state. ### Showing Function Output -By default, if a test fails, Rust’s test library captures anything printed to -standard output. For example, if we call `println!` in a test and the test -passes, we won’t see the `println!` output in the terminal; we’ll see only the -line that indicates the test passed. If a test fails, we’ll see whatever was -printed to standard output with the rest of the failure message. +By default, if a test passes, Rust’s test library will not capture anything +printed to standard output. For example, if we call `println!` in a test and +the test passes, we won’t see the `println!` output in the terminal; we’ll see +only the line that indicates the test passed. If a test fails, we’ll see +whatever was printed to standard output with the rest of the failure message. As an example, Listing 11-10 has a silly function that prints the value of its parameter and returns 10, as well as a test that passes and a test that fails.