@@ -132,7 +132,7 @@ pub struct CreateOptions<'a> {
132
132
ttl : Option < Duration > ,
133
133
}
134
134
135
- // Five bytes are avaiable for milliseconds. See javadoc of EphemeralType in ZooKeeper for reference.
135
+ // Five bytes are available for milliseconds. See javadoc of EphemeralType in ZooKeeper for reference.
136
136
//
137
137
// https://github.com/apache/zookeeper/blob/ebcf18e52fa095773429348ce495d59c896f4a26/zookeeper-server/src/main/java/org/apache/zookeeper/server/EphemeralType.java#L46
138
138
const TTL_MAX_MILLIS : u128 = 0x00FFFFFFFFFF ;
@@ -849,7 +849,7 @@ impl Client {
849
849
/// * Holds returned watcher without polling events may result in memory burst.
850
850
/// * At the time of written, ZooKeeper [ZOOKEEPER-4466][] does not support oneshot and
851
851
/// persistent watch on same path.
852
- /// * Persistent watch could loss events during reconnection due to [ZOOKEEPER-4698][].
852
+ /// * Persistent watch could lose events during reconnection due to [ZOOKEEPER-4698][].
853
853
///
854
854
/// [ZOOKEEPER-4466]: https://issues.apache.org/jira/browse/ZOOKEEPER-4466
855
855
/// [ZOOKEEPER-4698]: https://issues.apache.org/jira/browse/ZOOKEEPER-4698
@@ -898,7 +898,7 @@ impl Client {
898
898
} )
899
899
}
900
900
901
- /// Authenticates session using given scheme and auth identication . This affects only
901
+ /// Authenticates session using given scheme and auth identification . This affects only
902
902
/// subsequent operations.
903
903
///
904
904
/// # Errors
@@ -907,7 +907,7 @@ impl Client {
907
907
///
908
908
/// # Notable behaviors
909
909
/// * Same auth will be resubmitted for authentication after session reestablished.
910
- /// * This method is resistent to temporary session unavailability, that means
910
+ /// * This method is resistant to temporary session unavailability, that means
911
911
/// [SessionState::Disconnected] will not end authentication.
912
912
/// * It is ok to ignore resulting future of this method as request is sending synchronously
913
913
/// and auth failure will fail ZooKeeper session with [SessionState::AuthFailed].
@@ -1122,7 +1122,7 @@ impl Client {
1122
1122
///
1123
1123
/// # Asynchronous ordering
1124
1124
/// Comparing to other data operations, e.g. [Client::create], this operation is pure
1125
- /// asynchronous, so there is no data order guaranttee .
1125
+ /// asynchronous, so there is no data order guarantee .
1126
1126
///
1127
1127
/// # Error handling on [Error::ConnectionLoss]
1128
1128
/// * If connection loss during lock path creation, this method will find out the created lock
@@ -1219,7 +1219,7 @@ enum LockPrefixInner<'a> {
1219
1219
Shared { prefix : & ' a str } ,
1220
1220
}
1221
1221
1222
- // It is intentional for this to not `Clone` as it is non sense for [LockPrefix::new_custom], and I
1222
+ // It is intentional for this to not `Clone` as it is nonsense for [LockPrefix::new_custom], and I
1223
1223
// don't want to complicate this anymore, e.g. `LockPatternPrefix` and `LockCustomPrefix`. The side
1224
1224
// effect is that it is not easy to share `LockPrefix`. But, let the caller/tester to bore about that.
1225
1225
//
@@ -1731,7 +1731,7 @@ impl<'a> MultiReader<'a> {
1731
1731
/// Commits multiple operations in one request to reach consistent read.
1732
1732
///
1733
1733
/// # Notable behaviors
1734
- /// Individual errors(eg . [Error::NoNode]) are reported individually through [MultiReadResult::Error].
1734
+ /// Individual errors(e.g . [Error::NoNode]) are reported individually through [MultiReadResult::Error].
1735
1735
pub fn commit ( & mut self ) -> impl Future < Output = Result < Vec < MultiReadResult > > > + Send + ' a {
1736
1736
let request = self . build_request ( ) ;
1737
1737
Client :: resolve ( self . commit_internally ( request) )
0 commit comments