Skip to content

Commit

Permalink
docs: update documentation (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Jan 2, 2024
1 parent c7528b8 commit cdc6e15
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,17 +318,17 @@ func main() {
// After invoking CheckIntegrity and users want to reuse `dec` to Decode the FIT file,
// `f` should be reset since `f` has been fully read. The following method with do:
_, err = f.Seek(0, io.SeekStart)
if err != nil {
panic(err)
}

for dec.Next() {
fit, err := dec.Decode()
if err != nil {
panic(err)
}
if err != nil {
panic(err)
}

for dec.Next() {
fit, err := dec.Decode()
if err != nil {
panic(err)
}
_ = fit // Do something with fit
}
}
}
```

Expand Down

0 comments on commit cdc6e15

Please sign in to comment.