aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Speichert <daniel@speichert.pro>2015-03-28 18:59:17 -0400
committerDaniel Speichert <daniel@speichert.pro>2015-03-28 18:59:17 -0400
commit597d69fa1e630029d901c53169b3c001263644b9 (patch)
tree3db99e7d5a27bc8fd534c496f9c389df58191b97
parentMerge pull request #336 from boltdb/reclamation-docs (diff)
downloaddedo-597d69fa1e630029d901c53169b3c001263644b9.tar.gz
dedo-597d69fa1e630029d901c53169b3c001263644b9.tar.xz
Update README.md: fixed type mismatch
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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())))