Skip to content

Commit 41a1fc9

Browse files
committed
minor comments update
1 parent 6a7cfd6 commit 41a1fc9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

core/adapter/adapter.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ import (
66
"gvisor.dev/gvisor/pkg/tcpip/stack"
77
)
88

9-
// TCPConn implements the net.Conn interface.
9+
// TCPConn represents a TCP connection that implements net.Conn
10+
// and exposes its stack.TransportEndpointID.
1011
type TCPConn interface {
1112
net.Conn
1213

13-
// ID returns the transport endpoint id of TCPConn.
14+
// ID returns the transport endpoint id.
1415
ID() stack.TransportEndpointID
1516
}
1617

17-
// UDPConn implements net.Conn and net.PacketConn.
18+
// UDPConn represents a UDP connection that implements both net.Conn
19+
// and net.PacketConn and exposes its stack.TransportEndpointID.
1820
type UDPConn interface {
1921
net.Conn
2022
net.PacketConn
2123

22-
// ID returns the transport endpoint id of UDPConn.
24+
// ID returns the transport endpoint id.
2325
ID() stack.TransportEndpointID
2426
}

0 commit comments

Comments
 (0)