diff --git a/en/05.2.md b/en/05.2.md index 9fd1852e..96dc2292 100644 --- a/en/05.2.md +++ b/en/05.2.md @@ -39,7 +39,6 @@ The following example shows how to operate on a database based on the `database/ func main() { db, err := sql.Open("mysql", "astaxie:astaxie@/test?charset=utf8") - defer db.Close() checkErr(err) // insert @@ -94,6 +93,7 @@ The following example shows how to operate on a database based on the `database/ fmt.Println(affect) + db.Close() }