aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar mpn <mpn@google.com>2017-09-15 01:47:53 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-09-15 11:29:12 +0200
commitaa0ca5baf0f34907a1cae0c062658490fef95ecf (patch)
treee3dea5570f94bf4b739eeda73877bde60cfd7ab5 /src/main
parent8aa893772db375702d41894bb1a4f48c877dc175 (diff)
blaze: g3doc: fix closing HTML tag
RELNOTES: Tiny all() and any() documentation fix. PiperOrigin-RevId: 168767065
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/MethodLibrary.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/MethodLibrary.java b/src/main/java/com/google/devtools/build/lib/syntax/MethodLibrary.java
index c071ce4dd8..162cd2bfbb 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/MethodLibrary.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/MethodLibrary.java
@@ -1064,7 +1064,7 @@ public class MethodLibrary {
returnType = Boolean.class,
doc =
"Returns true if all elements evaluate to True or if the collection is empty. "
- + "Elements are converted to boolean using the <a href=\"#bool\">bool<a> function."
+ + "Elements are converted to boolean using the <a href=\"#bool\">bool</a> function."
+ "<pre class=\"language-python\">all([\"hello\", 3, True]) == True\n"
+ "all([-1, 0, 1]) == False</pre>",
parameters = {
@@ -1086,8 +1086,8 @@ public class MethodLibrary {
name = "any",
returnType = Boolean.class,
doc =
- "Returns true if at least one element evaluates to True."
- + "Elements are converted to boolean using the <a href=\"#bool\">bool<a> function."
+ "Returns true if at least one element evaluates to True. "
+ + "Elements are converted to boolean using the <a href=\"#bool\">bool</a> function."
+ "<pre class=\"language-python\">any([-1, 0, 1]) == True\n"
+ "any([False, 0, \"\"]) == False</pre>",
parameters = {