Merge pull request #340 from DSpeichert/master

Update README.md: fixed type mismatch
master
Ben Johnson 2015-03-28 17:06:38 -06:00
commit 8b138fd106
1 changed files with 1 additions and 1 deletions

View File

@ -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())))