Skip to content

Commit bb2257b

Browse files
committed
ipv4: drop package name prefix from identifiers in docs for consistency
Change-Id: I00b3297b88142ddb3c0cd08391171ebb6e731550 Reviewed-on: https://go-review.googlesource.com/34751 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent 094f037 commit bb2257b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ipv4/doc.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
// net.UDPConn and net.IPConn which are created as network connections
2424
// that use the IPv4 transport. When a single TCP connection carrying
2525
// a data flow of multiple packets needs to indicate the flow is
26-
// important, ipv4.Conn is used to set the type-of-service field on
27-
// the IPv4 header for each packet.
26+
// important, Conn is used to set the type-of-service field on the
27+
// IPv4 header for each packet.
2828
//
2929
// ln, err := net.Listen("tcp4", "0.0.0.0:1024")
3030
// if err != nil {
@@ -96,8 +96,8 @@
9696
// The application might set per packet control message transmissions
9797
// between the protocol stack within the kernel. When the application
9898
// needs a destination address on an incoming packet,
99-
// SetControlMessage of ipv4.PacketConn is used to enable control
100-
// message transmissions.
99+
// SetControlMessage of PacketConn is used to enable control message
100+
// transmissions.
101101
//
102102
// if err := p.SetControlMessage(ipv4.FlagDst, true); err != nil {
103103
// // error handling

ipv4/packet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func slicePacket(b []byte) (h, p []byte, err error) {
6464
//
6565
// The IPv4 header h must contain appropriate fields that include:
6666
//
67-
// Version = ipv4.Version
67+
// Version = <must be specified>
6868
// Len = <must be specified>
6969
// TOS = <must be specified>
7070
// TotalLen = <must be specified>

0 commit comments

Comments
 (0)