summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-10-26 00:36:23 -0700
committerGitHub <noreply@github.com>2016-10-26 00:36:23 -0700
commitdc884cd6c30ecb8121996d2d22ccba77bf039df6 (patch)
tree80c251297d0dc0e03185a8cbde7d07d534a91a45
parentdbfa8dcc89ff55fa1f8366433d24b1a270e53a02 (diff)
downloadqtlocation-mapboxgl-dc884cd6c30ecb8121996d2d22ccba77bf039df6.tar.gz
[ios, macos] Fixed syntax error in documentation comment (#6822)
Fixes #6821.
-rw-r--r--platform/darwin/scripts/generate-style-code.js3
-rw-r--r--platform/darwin/src/MGLSymbolStyleLayer.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js
index 4bcfe54d32..62ab3b6b98 100644
--- a/platform/darwin/scripts/generate-style-code.js
+++ b/platform/darwin/scripts/generate-style-code.js
@@ -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;
diff --git a/platform/darwin/src/MGLSymbolStyleLayer.h b/platform/darwin/src/MGLSymbolStyleLayer.h
index 3fcecedca3..9bd943a34e 100644
--- a/platform/darwin/src/MGLSymbolStyleLayer.h
+++ b/platform/darwin/src/MGLSymbolStyleLayer.h
@@ -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;