Starlark language docs link to list instead of tuple
On https://docs.bazel.build/versions/master/skylark/lib/string.html#endswith the link to "tuple" in "tuple of strings" actually points at the list documentation. Which then gave me a syntax error because I needed the "tuple" syntax with parentheses instead of square brackets. I'm also not sure where this documentation lives in Github... presumably it's autogenerated, and therefore this problem might affect other documentation pages?
src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java
src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java
src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java
diff --git a/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java b/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java
index 95f740e002ee79..f2a38819fa84d0 100644
--- a/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java
+++ b/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java
@@ -61,7 +61,7 @@ protected String getTypeAnchor(Class<?> type) {
     } else if (Map.class.isAssignableFrom(type)) {
       return "<a class=\"anchor\" href=\"dict.html\">dict</a>";
     } else if (type.equals(Tuple.class)) {
-      return "<a class=\"anchor\" href=\"list.html\">tuple</a>";
+      return "<a class=\"anchor\" href=\"tuple.html\">tuple</a>";
     } else if (type.equals(MutableList.class) || type.equals(ImmutableList.class)) {
       return "<a class=\"anchor\" href=\"list.html\">list</a>";
     } else if (type.equals(SkylarkList.class)) {

diff --git a/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java b/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java
index 07c684f73d714c..7796c5d8cbdb23 100644
--- a/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java
+++ b/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java
@@ -442,7 +442,7 @@ public void testSkylarkContainerReturnTypesWithoutAnnotations() throws Exception
                 + "MockClassWithContainerReturnValues.depset()");
     assertThat(signatures)
     .contains(
-        "<a class=\"anchor\" href=\"list.html\">tuple</a> "
+        "<a class=\"anchor\" href=\"tuple.html\">tuple</a> "
             + "MockClassWithContainerReturnValues.tuple()");
     assertThat(signatures)
         .contains(
