summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingguo Yao <yaojingguo@gmail.com>2019-01-29 15:57:36 +0100
committerAndor Molnar <andor@apache.org>2019-01-29 15:58:19 +0100
commitb69c2d3e29d84a1666840a872a8a32498d382ca5 (patch)
treeb205319ee5fc2aea045cc7f579f123f0e455845f
parentadf4e78dfeb96f802c1ac77d226c58a9355a75a8 (diff)
downloadzookeeper-b69c2d3e29d84a1666840a872a8a32498d382ca5.tar.gz
Fix typos
I think that this change is too trivial to need a JIRA issue. If a JIRA issue is needed, i can create it. Author: Jingguo Yao <yaojingguo@gmail.com> Reviewers: fangmin@apache.org, andor@apache.org Closes #777 from yaojingguo/fix-typos (cherry picked from commit 22e4acc802904231d537ae18f479cfc729851d87) Signed-off-by: Andor Molnar <andor@apache.org>
-rw-r--r--zookeeper-docs/src/main/resources/markdown/recipes.md2
-rw-r--r--zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/zookeeper-docs/src/main/resources/markdown/recipes.md b/zookeeper-docs/src/main/resources/markdown/recipes.md
index 8ae82cff6..b6646ad5b 100644
--- a/zookeeper-docs/src/main/resources/markdown/recipes.md
+++ b/zookeeper-docs/src/main/resources/markdown/recipes.md
@@ -213,7 +213,7 @@ Clients wishing to obtain a lock do the following:
1. The client calls **exists( )** with
the watch flag set on the path in the lock directory with the next
lowest sequence number.
-1. if **exists( )** returns false, go
+1. if **exists( )** returns null, go
to step **2**. Otherwise, wait for a
notification for the pathname from the previous step before going to
step **2**.
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java b/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
index 3e46ee7f7..03c8b0d7e 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
@@ -1499,7 +1499,7 @@ public class ZooKeeper {
* Return the list of the children of the node of the given path.
* <p>
* If the watch is non-null and the call is successful (no exception is thrown),
- * a watch will be left on the node with the given path. The watch willbe
+ * a watch will be left on the node with the given path. The watch will be
* triggered by a successful operation that deletes the node of the given
* path or creates/delete a child under the node.
* <p>
@@ -1548,7 +1548,7 @@ public class ZooKeeper {
* Return the list of the children of the node of the given path.
* <p>
* If the watch is true and the call is successful (no exception is thrown),
- * a watch will be left on the node with the given path. The watch willbe
+ * a watch will be left on the node with the given path. The watch will be
* triggered by a successful operation that deletes the node of the given
* path or creates/delete a child under the node.
* <p>
@@ -1613,7 +1613,7 @@ public class ZooKeeper {
* For the given znode path return the stat and children list.
* <p>
* If the watch is non-null and the call is successful (no exception is thrown),
- * a watch will be left on the node with the given path. The watch willbe
+ * a watch will be left on the node with the given path. The watch will be
* triggered by a successful operation that deletes the node of the given
* path or creates/delete a child under the node.
* <p>
@@ -1669,7 +1669,7 @@ public class ZooKeeper {
* For the given znode path return the stat and children list.
* <p>
* If the watch is true and the call is successful (no exception is thrown),
- * a watch will be left on the node with the given path. The watch willbe
+ * a watch will be left on the node with the given path. The watch will be
* triggered by a successful operation that deletes the node of the given
* path or creates/delete a child under the node.
* <p>