aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Francois-Rene Rideau <tunes@google.com>2016-01-06 19:50:27 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-01-07 13:46:01 +0000
commit328f615cde023c8820b17a40aa48284c3d54fdcf (patch)
tree56669977f8e83362ff5e718ffd0f6c1a8af8f742 /src/main/java
parent4aa6b5ebf6148623fe11ab58779afa3bb06568b4 (diff)
Fix small mistakes in some comments.
-- MOS_MIGRATED_REVID=111530554
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}