Better comment

This commit is contained in:
Felix Geisendörfer 2013-03-17 16:14:53 +01:00
parent 836c5c69f0
commit 33f434f85e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ type contentRange struct {
// parseContentRange parse a Content-Range string like "5-10/100".
// see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 .
// Asterisks "*" will result in End/Size being set to -1.
// "*" values causes End/Size to be set to -1.
func parseContentRange(s string) (*contentRange, error) {
const prefix = "bytes "
offset := strings.Index(s, prefix)