From e4e9fb481b6d5c5344f1e55d86fe11ecc8285f41 Mon Sep 17 00:00:00 2001 From: Eric Tenza Date: Sat, 23 Sep 2017 12:28:10 -0500 Subject: [PATCH] Update ch11-01-writing-tests.md Perhaps an older version of this file had us working in *src/main.rs*, but earlier we are called upon to use `cargo new adder` which I don't believe auto-generates a *src/main.rs* file, and seeing as how there are no other references to such a file in this section, I assume it's safe to remove the bit telling us not to put our code there. --- second-edition/src/ch11-01-writing-tests.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/second-edition/src/ch11-01-writing-tests.md b/second-edition/src/ch11-01-writing-tests.md index 56d9c4e4c..ca74faba2 100644 --- a/second-edition/src/ch11-01-writing-tests.md +++ b/second-edition/src/ch11-01-writing-tests.md @@ -211,8 +211,7 @@ helps us check that our code is functioning in the way we intend. Remember all the way back in Chapter 5, Listing 5-9, where we had a `Rectangle` struct and a `can_hold` method, repeated here in Listing 11-5. Let’s put this -code in *src/lib.rs* instead of *src/main.rs* and write some tests for it using -the `assert!` macro. +code in *src/lib.rs* and write some tests for it using the `assert!` macro. Filename: src/lib.rs