metainfo/metainfo.go | 6 +++--- diff --git a/metainfo/metainfo.go b/metainfo/metainfo.go index 0312866952785a5da2832fcd424e0b4acdcbce85..ea4b2b89c10f9cc0dfe0e96c5fe0c865e825523f 100644 --- a/metainfo/metainfo.go +++ b/metainfo/metainfo.go @@ -183,8 +183,8 @@ } return info.Files } -// The info dictionary with its hash and raw bytes exposed, as these are -// important to Bittorrent. +// The info dictionary with its hash and raw bytes exposed, in case +// remarshalling Info produces a different value. type InfoEx struct { Info Hash Hash // Only set when unmarshalling or UpdateHash. @@ -236,7 +236,7 @@ mi.CreationDate = time.Now().Unix() mi.Info.PieceLength = 256 * 1024 } -// Magnetize creates a Magnet from a MetaInfo +// Magnetize creates a Magnet from a MetaInfo. func (mi *MetaInfo) Magnet() (m Magnet) { for _, tier := range mi.AnnounceList { for _, tracker := range tier {