From: Matt Joiner Date: Wed, 3 Jun 2015 03:48:57 +0000 (+1000) Subject: Fix compile error in example X-Git-Tag: v1.0.0~1159 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9f94ca79c1a25c10edeb5be96d8ce1ea4b9f1c9b;p=btrtrc.git Fix compile error in example --- diff --git a/example_test.go b/example_test.go index c03fcdd2..002f507d 100644 --- a/example_test.go +++ b/example_test.go @@ -24,6 +24,6 @@ func Example_fileReader() { ) r := t.NewReader() defer r.Close() - fr := io.NewSectionReader(r, f.Offset(), f.Length()) + _ = io.NewSectionReader(r, f.Offset(), f.Length()) // fr will read from the parts of the torrent pertaining to f. }