diff options
author | 2015-05-22 13:55:23 +0000 | |
---|---|---|
committer | 2015-05-22 20:00:14 +0000 | |
commit | 9ba067d6533f6802c36453045372e4e97b5c3cd9 (patch) | |
tree | 8f4f4fde54bb52dc3fe5729f9e1df1dbb06196c8 /site/docs | |
parent | aba6ea8881660c3f5b4f7cc3425152641ce0af42 (diff) |
Documentation fixes.
--
MOS_MIGRATED_REVID=94274751
Diffstat (limited to 'site/docs')
-rw-r--r-- | site/docs/skylark/concepts.md | 5 | ||||
-rw-r--r-- | site/docs/skylark/rules.md | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/site/docs/skylark/concepts.md b/site/docs/skylark/concepts.md index 887a6bd2eb..cfb36d2f0e 100644 --- a/site/docs/skylark/concepts.md +++ b/site/docs/skylark/concepts.md @@ -89,6 +89,11 @@ Some differences with Python should be noted: * Dictionary assignment has slightly different semantics: `d["x"] = y` is syntactic sugar for `d = d + {"x": y}` or `d += {"x": y}`. +* Dictionaries have deterministic order when iterating (sorted by key). + +* Sets use a custom order when iterating (see + [documentation](library.html#modules._top_level.set)). + * Recursion is not allowed. The following Python features are not supported: diff --git a/site/docs/skylark/rules.md b/site/docs/skylark/rules.md index 92c8239eb2..ef2d18cd1e 100644 --- a/site/docs/skylark/rules.md +++ b/site/docs/skylark/rules.md @@ -12,7 +12,7 @@ it in a global variable. [See example](cookbook.md#empty). Attributes ---------- -An attribute is a rule argument, such as `srcs` or `deps`. You have to list +An attribute is a rule argument, such as `srcs` or `deps`. You must list the attributes and their type when you define a rule. ```python @@ -29,7 +29,7 @@ If an attribute starts with `_`, it is private and users cannot set it. It is useful in particular for label attributes (your rule will have an implicit dependency on this label). -The following attributes are implicitely added to every rule: `name`, +The following attributes are implicitly added to every rule: `name`, `visibility`, `deprecation`, `tags`, `testonly`, `features`. To access an attribute, use `ctx.attr.<attribute_name>`. The name and the |