mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
ipv4: fix typo in Header.Parse documentation
Change-Id: I889a02587b39e448ccdc5d723183ab550104ec5b Reviewed-on: https://go-review.googlesource.com/112816 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Ian Lance Taylor
parent
f73e4c9ed3
commit
2491c5de34
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user