Skip to content

Commit 255a286

Browse files
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.
1 parent 636132b commit 255a286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objectivec/GPBDescriptor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ typedef NS_ENUM(uint8_t, GPBFieldType) {
182182
@property(nonatomic, readonly, getter=isOptional) BOOL optional;
183183
/** Type of field (single, repeated, map). */
184184
@property(nonatomic, readonly) GPBFieldType fieldType;
185-
/** Type of the key if the field is a map. The value's type is -fieldType. */
185+
/** Type of the key if the field is a map. The value's type is -dataType. */
186186
@property(nonatomic, readonly) GPBDataType mapKeyDataType;
187187
/** Whether the field is packable. */
188188
@property(nonatomic, readonly, getter=isPackable) BOOL packable;

0 commit comments

Comments
 (0)