diff options
author | Michael Pratt <mpratt@google.com> | 2019-10-28 10:18:55 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-28 10:20:23 -0700 |
commit | 198f1cddb82d46570ae63cb704b4a1b88cf0de1f (patch) | |
tree | 1a13c258d69512f7dc3346a601d4febbec79ea5f /pkg/sentry/kernel/task.go | |
parent | 1c480abc39b9957606ff8bf125a5c253ad8a76cb (diff) |
Update comment
FDTable.GetFile doesn't exist.
PiperOrigin-RevId: 277089842
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r-- | pkg/sentry/kernel/task.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |