diff --git a/README.md b/README.md index efaaa67..8e52cbb 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ fn main() { price: 125000, }; // Insert the new laptop into the catalog. Note that at this time the product is in memory. - catalog.insert(new_laptop); + catalog.upsert(new_laptop); // Persist the changes in the catalog to the database. catalog.persist().unwrap(); // Remove the SQLite database file.