From 6d7dd06b47999fc008894106a6f73604f26a05f5 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 9 Nov 2015 22:27:38 +1100 Subject: [PATCH] Add comment doc for File.PrioritizeRegion --- file.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file.go b/file.go index 52b5bfeb..b8550cc7 100644 --- a/file.go +++ b/file.go @@ -71,6 +71,8 @@ func (f *File) State() (ret []FilePieceState) { return } +// Marks pieces in the region of the file for download. This is a helper +// wrapping Torrent.SetRegionPriority. func (f *File) PrioritizeRegion(off, len int64) { if off < 0 || off >= f.length { return -- 2.44.0