From 255a28629e0df16d637bbab667fba12e848002f8 Mon Sep 17 00:00:00 2001 From: punmy Date: Tue, 25 May 2021 14:54:17 +0800 Subject: [PATCH] Correct a comment of GPBFieldDescriptor The comment of property 'mapKeyDataType' has a mistake. If the field is a map, the value's type is not fieldType. Instead, it's dataType. --- objectivec/GPBDescriptor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objectivec/GPBDescriptor.h b/objectivec/GPBDescriptor.h index 331d4444ab..fd66b0e9f0 100644 --- a/objectivec/GPBDescriptor.h +++ b/objectivec/GPBDescriptor.h @@ -182,7 +182,7 @@ typedef NS_ENUM(uint8_t, GPBFieldType) { @property(nonatomic, readonly, getter=isOptional) BOOL optional; /** Type of field (single, repeated, map). */ @property(nonatomic, readonly) GPBFieldType fieldType; -/** Type of the key if the field is a map. The value's type is -fieldType. */ +/** Type of the key if the field is a map. The value's type is -dataType. */ @property(nonatomic, readonly) GPBDataType mapKeyDataType; /** Whether the field is packable. */ @property(nonatomic, readonly, getter=isPackable) BOOL packable;