From 753e53ad17ca887866bb066e5e5d9762465a53b2 Mon Sep 17 00:00:00 2001 From: Chiin <77933451+0xChin@users.noreply.github.com> Date: Tue, 27 Jun 2023 05:22:50 -0300 Subject: [PATCH] Correct print statement in library exercise (#876) * fix(day 1): correct print statement logic for library emptiness status * chore: add explicit method print * chore: change `:` for `->` --- src/exercises/day-1/book-library.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exercises/day-1/book-library.rs b/src/exercises/day-1/book-library.rs index c6efe17d..a3ea1d8d 100644 --- a/src/exercises/day-1/book-library.rs +++ b/src/exercises/day-1/book-library.rs @@ -114,12 +114,12 @@ impl Library { fn main() { let library = Library::new(); - //println!("The library is empty: {}", library.is_empty()); + //println!("The library is empty: library.is_empty() -> {}", library.is_empty()); // //library.add_book(Book::new("Lord of the Rings", 1954)); //library.add_book(Book::new("Alice's Adventures in Wonderland", 1865)); // - //println!("The library is no longer empty: {}", library.is_empty()); + //println!("The library is no longer empty: library.is_empty() -> {}", library.is_empty()); // // //library.print_books();