Browse Source

Clarify PriorityParam.Weight's range.

Brad Fitzpatrick 11 years ago
parent
commit
73d2f1e5ab
1 changed files with 4 additions and 2 deletions
  1. 4 2
      frame.go

+ 4 - 2
frame.go

@@ -836,8 +836,10 @@ type PriorityParam struct {
 	// Exclusive is whether the dependency is exclusive.
 	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
 }