Fix example to check the correct error value

This commit is contained in:
Marc Campbell 2015-08-24 17:19:04 -07:00
parent 8897bf1452
commit 5532d1d5ac
1 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ func main() {
log.Fatal(err)
}
bk.Step(-1)
_, err = bk.Step(-1)
if err != nil {
log.Fatal(err)
}