Attr doc: fix typo, add link
--
MOS_MIGRATED_REVID=126691559
diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkAttr.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkAttr.java
index b966515..1471c80f 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkAttr.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkAttr.java
@@ -65,7 +65,8 @@
category = SkylarkModuleCategory.BUILTIN,
doc =
"Module for creating new attributes. "
- + "They are only for use with the <a href=\"globals.html#rule\">rule</a> function."
+ + "They are only for use with <a href=\"globals.html#rule\">rule</a> or "
+ + "<a href=\"globals.html#aspect\">aspect</a>."
)
public final class SkylarkAttr {
@@ -1108,8 +1109,10 @@
name = "attr_defintion",
category = SkylarkModuleCategory.NONE,
doc =
- "Representation of a definition of an attribute; cobnstructed by <code>attr.*</code>"
- + " functions."
+ "Representation of a definition of an attribute; constructed by <code>attr.*</code>"
+ + " functions. They are only for use with <a href=\"globals.html#rule\">rule</a> or "
+ + "<a href=\"globals.html#aspect\">aspect</a>."
+
)
public static final class Descriptor {
private final Attribute.Builder<?> attributeBuilder;