mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Update comment
FDTable.GetFile doesn't exist. PiperOrigin-RevId: 277089842
This commit is contained in:
committed by
gVisor bot
parent
1c480abc39
commit
198f1cddb8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user