aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent.go
diff options
context:
space:
mode:
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
}