From 597d69fa1e630029d901c53169b3c001263644b9 Mon Sep 17 00:00:00 2001 From: Daniel Speichert Date: Sat, 28 Mar 2015 18:59:17 -0400 Subject: [PATCH] Update README.md: fixed type mismatch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b0a253..33743f8 100644 --- a/README.md +++ b/README.md @@ -385,7 +385,7 @@ do database backups: ```go func BackupHandleFunc(w http.ResponseWriter, req *http.Request) { - err := db.View(func(tx bolt.Tx) error { + err := db.View(func(tx *bolt.Tx) error { w.Header().Set("Content-Type", "application/octet-stream") w.Header().Set("Content-Disposition", `attachment; filename="my.db"`) w.Header().Set("Content-Length", strconv.Itoa(int(tx.Size())))