update vendor, fix #788

This commit is contained in:
fatedier
2018-05-21 21:09:18 +08:00
parent 2e497274ba
commit 490019fb51
7 changed files with 55 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ func (h *Header) Marshal() ([]byte, error) {
return b, nil
}
// Parse parses b as an IPv4 header and sotres the result in h.
// Parse parses b as an IPv4 header and stores the result in h.
func (h *Header) Parse(b []byte) error {
if h == nil || len(b) < HeaderLen {
return errHeaderTooShort