From 198f1cddb82d46570ae63cb704b4a1b88cf0de1f Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Mon, 28 Oct 2019 10:18:55 -0700 Subject: Update comment FDTable.GetFile doesn't exist. PiperOrigin-RevId: 277089842 --- pkg/sentry/kernel/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go index c82ef5486..11a8c6c87 100644 --- a/pkg/sentry/kernel/task.go +++ b/pkg/sentry/kernel/task.go @@ -709,9 +709,9 @@ func (t *Task) FDTable() *FDTable { return t.fdTable } -// GetFile is a convenience wrapper t.FDTable().GetFile. +// GetFile is a convenience wrapper t.FDTable().Get. // -// Precondition: same as FDTable. +// Precondition: same as FDTable.Get. func (t *Task) GetFile(fd int32) *fs.File { f, _ := t.fdTable.Get(fd) return f -- cgit v1.2.3