Fix stale comment on Endpoint.ReadContext.

Fixes #7109

PiperOrigin-RevId: 425799066
This commit is contained in:
Bhasker Hariharan 2022-02-01 22:34:52 -08:00 committed by gVisor bot
parent 5a642df6b3
commit 404b90fa4a
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func (e *Endpoint) Read() *stack.PacketBuffer {
} }
// ReadContext does blocking read for one packet from the outbound packet queue. // 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 { func (e *Endpoint) ReadContext(ctx context.Context) *stack.PacketBuffer {
return e.q.ReadContext(ctx) return e.q.ReadContext(ctx)
} }