1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 06:20:32 +02:00

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 `->`
This commit is contained in:
Chiin 2023-06-27 05:22:50 -03:00 committed by GitHub
parent d5e460fddd
commit 753e53ad17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();