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:
parent
d5e460fddd
commit
753e53ad17
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user