Show how to close a connection
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 978b760..1ff75f0 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -42,8 +42,9 @@
# Save (commit) the changes
conn.commit()
- # We can also close the cursor if we are done with it
- c.close()
+ # We can also close the connection if we are done with it.
+ # Just be sure any changes have been committed or they will be lost.
+ conn.close()
The data you've saved is persistent and is available in subsequent sessions::