torrent: Fix documentation.

This commit is contained in:
nsf 2012-07-11 02:44:22 +06:00
parent cb1f612378
commit d42799be2c
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ func (b *Batch) DefaultName() string {
// SHA1 hashing. Therefore it will return almost immedately. It returns two
// channels, the first one is for completion awaiting, the second one is for
// getting status reports. Status report is a number of bytes hashed, you can
// get the total amount of bytes by inspecting the appropriate Batch structure
// field.
// get the total amount of bytes by inspecting the Batch.TotalSize method return
// value.
func (b *Batch) Start(w io.Writer, nworkers int) (<-chan error, <-chan int64) {
if nworkers <= 0 {
nworkers = 1