diff --git a/ocf/example_test.go b/ocf/example_test.go index b8b014a..ee09e5c 100644 --- a/ocf/example_test.go +++ b/ocf/example_test.go @@ -34,7 +34,7 @@ func ExampleNewDecoder() { // Do something with the data } - if dec.Error() != nil { + if err := dec.Error(); err != nil { log.Fatal(err) } }