Commit 2491c5de authored by Matt Layher's avatar Matt Layher Committed by Ian Lance Taylor

ipv4: fix typo in Header.Parse documentation

Change-Id: I889a02587b39e448ccdc5d723183ab550104ec5b
Reviewed-on: https://go-review.googlesource.com/112816Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent f73e4c9e
...@@ -98,7 +98,7 @@ func (h *Header) Marshal() ([]byte, error) { ...@@ -98,7 +98,7 @@ func (h *Header) Marshal() ([]byte, error) {
return b, nil 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 { func (h *Header) Parse(b []byte) error {
if h == nil || len(b) < HeaderLen { if h == nil || len(b) < HeaderLen {
return errHeaderTooShort return errHeaderTooShort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment