]> Sergey Matveev's repositories - btrtrc.git/blobdiff - t.go
Make type piece public
[btrtrc.git] / t.go
diff --git a/t.go b/t.go
index ce0c007f08b6b23ca1770fae78c6f2c65dac28fd..cc69d8e3c7ac9c04c756af316bd81c81fc1c0d08 100644 (file)
--- a/t.go
+++ b/t.go
@@ -210,7 +210,7 @@ func (t *Torrent) AddTrackers(announceList [][]string) {
        t.addTrackers(announceList)
 }
 
-func (t *Torrent) Piece(i int) *piece {
+func (t *Torrent) Piece(i int) *Piece {
        t.cl.mu.Lock()
        defer t.cl.mu.Unlock()
        return &t.pieces[i]