aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-12 21:39:26 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-12 21:39:26 +0200
commit2c80166f55cdc0d587d2f9d93b90e43d768cec49 (patch)
tree8ad34bfc618e40523038e16d5bdb16f842b25d61 /meta/torrent.go
parent6210722bbf16bdc671bc1331e0e929c4335cf9af (diff)
typo
Diffstat (limited to 'meta/torrent.go')
-rw-r--r--meta/torrent.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/torrent.go b/meta/torrent.go
index 656e2c9..d6a68dc 100644
--- a/meta/torrent.go
+++ b/meta/torrent.go
@@ -26,7 +26,7 @@ func (i Info) SingleFile() bool {
return len(i.Files) > 0
}
-// PieceCopunt returns count of full pieces and size of last piece
+// PieceCount returns count of full pieces and size of last piece
func (i Info) PieceCount() (int, int) {
return i.Length / i.PieceLength, i.Length % i.PieceLength
}