From f0843c30d0235be8ff7adb36873de64c0c7eac92 Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Tue, 24 Sep 2019 16:29:29 +1000
Subject: [PATCH] Add comments to metainfo.Magnet fields

---
 metainfo/magnet.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/metainfo/magnet.go b/metainfo/magnet.go
index 1a16057d..9fd15c6b 100644
--- a/metainfo/magnet.go
+++ b/metainfo/magnet.go
@@ -11,10 +11,10 @@ import (
 
 // Magnet link components.
 type Magnet struct {
-	InfoHash    Hash
-	Trackers    []string
-	DisplayName string
-	Params      url.Values
+	InfoHash    Hash       // Expected in this implementation
+	Trackers    []string   // "tr" values
+	DisplayName string     // "dn" value, if not empty
+	Params      url.Values // All other values, such as "x.pe", "as", "xs" etc.
 }
 
 const xtPrefix = "urn:btih:"
-- 
2.51.0