Fix upb_MiniTable_NextOneofField comment.

PiperOrigin-RevId: 509416415
pull/13171/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 57a79de7cc
commit 0ccf6fd717
  1. 7
      upb/mini_table/common.h

@ -130,10 +130,11 @@ UPB_API_INLINE const upb_MiniTableEnum* upb_MiniTable_GetSubEnumTable(
const upb_MiniTableField* upb_MiniTable_GetOneof(const upb_MiniTable* m,
const upb_MiniTableField* f);
// Returns the next field in the oneof. If this is the last field in the
// oneof, returns NULL. The ordering of fields in the oneof is not
// Iterates to the next field in the oneof. If this is the last field in the
// oneof, returns false. The ordering of fields in the oneof is not
// guaranteed.
// REQUIRES: |iter| is and iterator.
// REQUIRES: |f| is the field initialized by upb_MiniTable_GetOneof and updated
// by prior upb_MiniTable_NextOneofField calls.
bool upb_MiniTable_NextOneofField(const upb_MiniTable* m,
const upb_MiniTableField** f);

Loading…
Cancel
Save