Skip to content

Commit

Permalink
fix model description: ibireme#62
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Mar 15, 2016
1 parent 9fdf382 commit 960355a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YYModel/NSObject+YYModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1298,15 +1298,15 @@ static id ModelToJSONObjectRecursive(NSObject *model) {
} else {
NSArray *keys = dic.allKeys;

[desc appendFormat:@"[\n"];
[desc appendFormat:@"{\n"];
for (NSUInteger i = 0, max = keys.count; i < max; i++) {
NSString *key = keys[i];
NSObject *value = dic[key];
[desc appendString:@" "];
[desc appendFormat:@"%@ = %@",key, ModelDescriptionAddIndent(ModelDescription(value).mutableCopy, 1)];
[desc appendString:(i + 1 == max) ? @"\n" : @";\n"];
}
[desc appendString:@"]"];
[desc appendString:@"}"];
}
return desc;
}
Expand Down

0 comments on commit 960355a

Please sign in to comment.