Update comment

FDTable.GetFile doesn't exist.

PiperOrigin-RevId: 277089842
This commit is contained in:
Michael Pratt
2019-10-28 10:20:23 -07:00
committed by gVisor bot
parent 1c480abc39
commit 198f1cddb8
+2 -2
View File
@@ -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