]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix compile error in example
authorMatt Joiner <anacrolix@gmail.com>
Wed, 3 Jun 2015 03:48:57 +0000 (13:48 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 3 Jun 2015 03:48:57 +0000 (13:48 +1000)
example_test.go

index c03fcdd22d9554997cb9430f60c6d712b28afd21..002f507d28a89edcc74f92365032de1e873397ef 100644 (file)
@@ -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.
 }