Procházet zdrojové kódy

Clarify PriorityParam.Weight's range.

Brad Fitzpatrick před 11 roky
rodič
revize
73d2f1e5ab
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      frame.go

+ 4 - 2
frame.go

@@ -836,8 +836,10 @@ type PriorityParam struct {
 	// Exclusive is whether the dependency is exclusive.
 	// Exclusive is whether the dependency is exclusive.
 	Exclusive bool
 	Exclusive bool
 
 
-	// Weight is the stream's weight. It should be set together
-	// with StreamDep, or neither should be set.
+	// Weight is the stream's zero-indexed weight. It should be
+	// set together with StreamDep, or neither should be set.  Per
+	// the spec, "Add one to the value to obtain a weight between
+	// 1 and 256."
 	Weight uint8
 	Weight uint8
 }
 }