From 0ccf6fd71722ecfe48b9788c1df2293e4bee7545 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 13 Feb 2023 20:58:16 -0800 Subject: [PATCH] Fix upb_MiniTable_NextOneofField comment. PiperOrigin-RevId: 509416415 --- upb/mini_table/common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);