diff --git a/site/docs/skylark/language.md b/site/docs/skylark/language.md index 79c08f0c455552..244e881668ab7b 100644 --- a/site/docs/skylark/language.md +++ b/site/docs/skylark/language.md @@ -107,8 +107,7 @@ illegal, and 2) `*args` and `**kwargs` arguments are not allowed. * `for` statements are not allowed at the top-level. Use them within functions instead. In BUILD files, you may use list comprehensions. -* `if` statements are not allowed at the top-level. However, `if` expressions - can be used: `first = data[0] if len(data) > 0 else None`. +* `if` statements are not allowed at the top-level. However, `if` expressions can be used: `first = data[0] if len(data) > 0 else None`. * Deterministic order for iterating through Dictionaries. @@ -125,8 +124,7 @@ not defined across value types. In short: `5 < 'foo'` will throw an error and * In tuples, a trailing comma is valid only when the tuple is between parentheses, e.g. write `(1,)` instead of `1,`. -* Dictionary literals cannot have duplicated keys. For example, this is an - error: `{"a": 4, "b": 7, "a": 1}`. +* Dictionary literals cannot have duplicated keys. For example, this is an error: `{"a": 4, "b": 7, "a": 1}`. * The variable used in a comprehension may not be used after the comprehension. This is stricter than Python 2 and Python 3, which have different behavior