Commit 4fd4a9fe authored by Tal Shprecher's avatar Tal Shprecher Committed by Ian Lance Taylor

x/net/icmp: fix typos in comments

Change-Id: I43ad7497db6b4d57efd2ab94f7af26e3eb0dcdf5
Reviewed-on: https://go-review.googlesource.com/18485Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 0e6d34ef
......@@ -10,7 +10,7 @@ type Extension interface {
// Proto must be either the ICMPv4 or ICMPv6 protocol number.
Len(proto int) int
// Marshal returns the binary enconding of ICMP extension.
// Marshal returns the binary encoding of ICMP extension.
// Proto must be either the ICMPv4 or ICMPv6 protocol number.
Marshal(proto int) ([]byte, error)
}
......
......@@ -59,7 +59,7 @@ type Message struct {
Body MessageBody // body
}
// Marshal returns the binary enconding of the ICMP message m.
// Marshal returns the binary encoding of the ICMP message m.
//
// For an ICMPv4 message, the returned message always contains the
// calculated checksum field.
......
......@@ -10,7 +10,7 @@ type MessageBody interface {
// Proto must be either the ICMPv4 or ICMPv6 protocol number.
Len(proto int) int
// Marshal returns the binary enconding of ICMP message body.
// Marshal returns the binary encoding of ICMP message body.
// Proto must be either the ICMPv4 or ICMPv6 protocol number.
Marshal(proto int) ([]byte, error)
}
......
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