[ios, macos] Fixed syntax error in documentation comment (#6822)

Fixes #6821.
This commit is contained in:
Minh Nguyễn
2016-10-26 00:36:23 -07:00
committed by GitHub
parent dbfa8dcc89
commit dc884cd6c3
2 changed files with 4 additions and 1 deletions

View File

@@ -152,6 +152,9 @@ global.describeValue = function (value, property, layerType) {
case 'number':
return 'an `NSNumber` object containing the float `' + value + '`';
case 'string':
if (value === '') {
return 'the empty string';
}
return 'the string `' + value + '`';
case 'enum':
let displayValue;

View File

@@ -388,7 +388,7 @@ typedef NS_ENUM(NSUInteger, MGLTextTranslateAnchor) {
/**
Value to use for a text label. Feature properties are specified using tokens like {field_name}.
The default value of this property is an `MGLStyleValue` object containing the string ``. Set this property to `nil` to reset it to the default value.
The default value of this property is an `MGLStyleValue` object containing the empty string. Set this property to `nil` to reset it to the default value.
*/
@property (nonatomic, null_resettable) MGLStyleValue<NSString *> *textField;