]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Clarify Example_fileReader
authorMatt Joiner <anacrolix@gmail.com>
Thu, 4 Jun 2015 04:25:52 +0000 (14:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 4 Jun 2015 04:25:52 +0000 (14:25 +1000)
example_test.go

index 002f507d28a89edcc74f92365032de1e873397ef..9dc7502c314afaf5e0c7c9b75c9dec64aa00c51d 100644 (file)
@@ -24,6 +24,7 @@ func Example_fileReader() {
        )
        r := t.NewReader()
        defer r.Close()
+       // Access the parts of the torrent pertaining to f. Data will be
+       // downloaded as required, per the configuration of the torrent.Reader.
        _ = io.NewSectionReader(r, f.Offset(), f.Length())
-       // fr will read from the parts of the torrent pertaining to f.
 }