From 9ba067d6533f6802c36453045372e4e97b5c3cd9 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Fri, 22 May 2015 13:55:23 +0000 Subject: Documentation fixes. -- MOS_MIGRATED_REVID=94274751 --- site/docs/skylark/concepts.md | 5 +++++ site/docs/skylark/rules.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'site/docs') 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.`. The name and the -- cgit v1.2.3