diff --git a/upb/mini_table/common.h b/upb/mini_table/common.h index 82590a6ad5..16dafa192c 100644 --- a/upb/mini_table/common.h +++ b/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);