diff --git a/README.md b/README.md index 5d8ad35..1098389 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ import ( ) func recordStats(db *sql.DB, userID, productID int64) (err error) { - tx, err := db.Begin() + tx, err = db.Begin() if err != nil { return }