From b6866f764e5a804399ed60bbbce43a379b568ece Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Fri, 30 Mar 2018 19:25:30 -0400 Subject: [PATCH] [ios, docs] Fix formatting in Predicates & Expressions guide (#11574) - Code ticks within HTML tables do not convert to code blocks. - Pipes within Markdown tables are interpreted as new columns, even within ticks. --- .../docs/guides/Predicates and Expressions.md | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md index 4abdcff49..13204b09a 100644 --- a/platform/darwin/docs/guides/Predicates and Expressions.md +++ b/platform/darwin/docs/guides/Predicates and Expressions.md @@ -36,7 +36,7 @@ The following compound operators are supported: `NSCompoundPredicateType` | Format string syntax --------------------------|--------------------- `NSAndPredicateType` | `predicate1 AND predicate2`
`predicate1 && predicate2` -`NSOrPredicateType` | `predicate1 OR predicate2`
`predicate1 || predicate2` +`NSOrPredicateType` | `predicate1 OR predicate2`
predicate1 || predicate2 `NSNotPredicateType` | `NOT predicate`
`!predicate` The following aggregate operators are supported: @@ -213,33 +213,33 @@ The following custom functions are also available with the boolValue - An `NSExpression` that evaluates to a number or string. + An NSExpression that evaluates to a number or string. - A Boolean representation of the target: `FALSE` when then input is an - empty string, 0, `FALSE`, `NIL`, or NaN, otherwise `TRUE`. + A Boolean representation of the target: FALSE when then input is an + empty string, 0, FALSE, NIL, or NaN, otherwise TRUE. mgl_has: - An `NSExpression` that evaluates to an NSDictionary or the evaluated object (SELF). + An NSExpression that evaluates to an NSDictionary or the evaluated object (SELF). - An `NSExpression` that evaluates to an NSString representing the key to look up in the dictionary or the feature attribute to look up in the evaluated object (see MGLFeature.attributes). + An NSExpression that evaluates to an NSString representing the key to look up in the dictionary or the feature attribute to look up in the evaluated object (see MGLFeature.attributes). - `true` if the dictionary has a value for the key or if the evaluated object has a value for the feature attribute. + true if the dictionary has a value for the key or if the evaluated object has a value for the feature attribute. mgl_expressionWithContext: - An `NSExpression` that may contain references to the variables defined in + An NSExpression that may contain references to the variables defined in the context dictionary. - An `NSDictionary` with `NSString`s as keys and `NSExpression`s as values. + An NSDictionary with NSStrings as keys and NSExpressions as values. Each key is a variable name and each value is the variable’s value within the target expression. @@ -251,31 +251,31 @@ The following custom functions are also available with the mgl_interpolateWithCurveType:parameters:stops: - An `NSExpression` that evaluates to a number and contains a variable or + An NSExpression that evaluates to a number and contains a variable or key path expression. The first argument is one of the following strings denoting curve types: - `linear`, `exponential`, or `cubic-bezier`. + linear, exponential, or cubic-bezier. The second argument is an expression providing parameters for the curve: - The third argument is an `NSDictionary` object representing the + The third argument is an NSDictionary object representing the interpolation’s stops, with numeric zoom levels as keys and expressions as values. @@ -292,16 +292,16 @@ The following custom functions are also available with the decimalValue - An `NSExpression` that evaluates to a Boolean value, number, or string. + An NSExpression that evaluates to a Boolean value, number, or string. - Zero or more `NSExpression`s, each evaluating to a Boolean value or + Zero or more NSExpressions, each evaluating to a Boolean value or string. A numeric representation of the target: