From 4ef57dadd068abeee469a2bcaf98611b2a629a34 Mon Sep 17 00:00:00 2001 From: Laszlo Csomor Date: Wed, 6 Apr 2016 12:14:41 +0000 Subject: Skylark docs: fix ctx.file and ctx.files. They were using "" which was parsed as a HTML tag. ctx.file appeared as: It is a shortcut for: list(ctx.attr..files)[0] ctx.files appeared as: It is a shortcut for: [f for t in ctx.attr. for f in t.files] -- MOS_MIGRATED_REVID=119149347 --- .../com/google/devtools/build/lib/rules/SkylarkRuleContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/google') diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java index 3b9935ea7f..bb12bb45ba 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java +++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java @@ -112,9 +112,9 @@ public final class SkylarkRuleContext { "A struct containing files defined in label or label list " + "type attributes. The struct fields correspond to the attribute names. The struct " + "values are list of files. If an optional attribute is " - + "not specified in the rule, an empty list is generated." + + "not specified in the rule, an empty list is generated. " + "It is a shortcut for:" - + "
[f for t in ctx.attr. for f in t.files]
"; + + "
[f for t in ctx.attr.<ATTR> for f in t.files]
"; public static final String FILE_DOC = "A struct containing files defined in label type " + "attributes marked as single_file=True. The struct fields correspond " @@ -123,7 +123,7 @@ public final class SkylarkRuleContext { + "then the corresponding struct value is None. If a label type is not " + "marked as single_file=True, no corresponding struct field is generated. " + "It is a shortcut for:" - + "
list(ctx.attr..files)[0]
"; + + "
list(ctx.attr.<ATTR>.files)[0]
"; public static final String ATTR_DOC = "A struct to access the values of the attributes. The values are provided by " + "the user (if not, a default value is used)."; -- cgit v1.2.3