mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 19:30:02 +00:00
Reword comment so that code editors can mark deprecation correctly (#4147)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3f936c5655
commit
bbef92c17d
@@ -10,7 +10,7 @@ type Table struct {
|
|||||||
|
|
||||||
// Offset provides access into the Table's vtable.
|
// Offset provides access into the Table's vtable.
|
||||||
//
|
//
|
||||||
// Deprecated fields are ignored by checking against the vtable's length.
|
// Fields which are deprecated are ignored by checking against the vtable's length.
|
||||||
func (t *Table) Offset(vtableOffset VOffsetT) VOffsetT {
|
func (t *Table) Offset(vtableOffset VOffsetT) VOffsetT {
|
||||||
vtable := UOffsetT(SOffsetT(t.Pos) - t.GetSOffsetT(t.Pos))
|
vtable := UOffsetT(SOffsetT(t.Pos) - t.GetSOffsetT(t.Pos))
|
||||||
if vtableOffset < t.GetVOffsetT(vtable) {
|
if vtableOffset < t.GetVOffsetT(vtable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user