Fix stale comment on Endpoint.ReadContext.
Fixes #7109 PiperOrigin-RevId: 425799066
This commit is contained in:
parent
5a642df6b3
commit
404b90fa4a
|
@ -167,7 +167,7 @@ func (e *Endpoint) Read() *stack.PacketBuffer {
|
|||
}
|
||||
|
||||
// ReadContext does blocking read for one packet from the outbound packet queue.
|
||||
// It can be cancelled by ctx, and in this case, it returns false.
|
||||
// It can be cancelled by ctx, and in this case, it returns nil.
|
||||
func (e *Endpoint) ReadContext(ctx context.Context) *stack.PacketBuffer {
|
||||
return e.q.ReadContext(ctx)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue