From 5d9cd27675ea83994e1a27d75fc71d3ddb912b59 Mon Sep 17 00:00:00 2001 From: Pawan-Bishnoi Date: Tue, 12 May 2020 11:39:27 +0530 Subject: [PATCH] Readme: build error in test code err redeclared --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }