[ios, macos] Corrected return type of MGLShape factory method

This commit is contained in:
Minh Nguyễn
2016-12-15 21:14:17 -08:00
parent 74f39c0120
commit b8466946e5
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
not be parsed as valid GeoJSON source code. If `nil`, `outError` contains an
`NSError` object describing the problem.
*/
+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError;
+ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError;
#pragma mark Accessing the Shape Attributes

View File

@@ -4,7 +4,7 @@
@implementation MGLShape
+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError {
+ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError {
NSString *string = [[NSString alloc] initWithData:data encoding:encoding];
if (!string) {
if (outError) {