diff options
Diffstat (limited to 'upb/json/parser.h')
-rw-r--r-- | upb/json/parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/json/parser.h b/upb/json/parser.h index fb5fd2f..91b08d8 100644 --- a/upb/json/parser.h +++ b/upb/json/parser.h @@ -52,7 +52,8 @@ class upb::json::ParserMethod { /* Include base methods from upb::ReferenceCounted. */ UPB_REFCOUNTED_CPPMETHODS - /* Returns handlers for parsing according to the specified schema. */ + /* Returns handlers for parsing according to the specified schema. + * The MessageDef must outlive the ParserMethod. */ static reffed_ptr<const ParserMethod> New(const upb::MessageDef* md); /* The destination handlers that are statically bound to this method. |