aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/Mutability.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java b/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
index 8c3ec362ba..b3b1d9ee5a 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
@@ -453,7 +453,7 @@ public final class EvalUtils {
* Build a map of kwarg arguments from a list, removing null-s or None-s.
*
* @param init a series of key, value pairs (as consecutive arguments)
- * as in {@code optionMap(k1, v1, k2, v2, k3, v3, map)}
+ * as in {@code optionMap(k1, v1, k2, v2, k3, v3)}
* where each key is a String, each value is an arbitrary Objet.
* @return a {@code Map<String, Object>} that has all the specified entries,
* where key, value pairs appearing earlier have precedence,
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/Mutability.java b/src/main/java/com/google/devtools/build/lib/syntax/Mutability.java
index 9e705845a5..cfe1129ae0 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/Mutability.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/Mutability.java
@@ -36,7 +36,7 @@ import java.io.Serializable;
* by arbitrarily many threads.
*
* <p>The safe usage of a Mutability requires to always use try-with-resource style:
- * <code>try(Mutability mutability = Mutability.create(fmt, ...)) { ... }</code>
+ * <code>try (Mutability mutability = Mutability.create(fmt, ...)) { ... }</code>
* Thus, you can create a Mutability, build an {@link Environment}, mutate that {@link Environment}
* and create mutable objects as you evaluate in that {@link Environment}, and finally return the
* resulting {@link Environment}, at which point the resource is closed, and the {@link Environment}