@@ -41,7 +41,7 @@ pub trait SetTarget<C> {
4141 ///
4242 /// This is mostly to get around that `Clone` requires `Sized` and so you need this
4343 /// trick to get a copy of the `Box<dyn SetTarget<C>>` you got from making the
44- /// reconneting client.
44+ /// reconnecting client.
4545 fn add_ref ( & self ) -> Box < dyn SetTarget < C > > ;
4646
4747 /// Sets the target client of the reconnecting client that this trait implementation is
@@ -258,16 +258,16 @@ where
258258
259259/// Creates a new client that reconnects when getting [`ErrorKind::Disconnected`](capnp::ErrorKind::Disconnected) errors.
260260///
261- /// Usually when you get a [`Disconnected`](capnp::ErrorKind::Disconnected) error respoonse from calling a method on a capability
261+ /// Usually when you get a [`Disconnected`](capnp::ErrorKind::Disconnected) error response from calling a method on a capability
262262/// it means the end of that capability for good. And so you can't call methods on that
263263/// capability any more.
264264///
265265/// When you have a way of getting the capability back: Be it from a bootstrap or because
266- /// the capability is persistent this method can help you wrap that reconnnection logic into a client
266+ /// the capability is persistent this method can help you wrap that reconnection logic into a client
267267/// that automatically runs the logic whenever a method call returns [`Disconnected`](capnp::ErrorKind::Disconnected).
268268///
269269/// The way it works is that you provide a closure that returns a fresh client or a permanent error and
270- /// you get a new conected client and a [`SetTarget`] interface that you can optionally use to prematurely
270+ /// you get a new connected client and a [`SetTarget`] interface that you can optionally use to prematurely
271271/// replace the client.
272272///
273273/// There is one caveat though: The original request that got a [`Disconnected`](capnp::ErrorKind::Disconnected)
@@ -334,7 +334,7 @@ where
334334/// For explanation of how this functions see: [`auto_reconnect`]
335335///
336336/// The main difference between [`auto_reconnect`] and this function is that while [`auto_reconnect`] will call
337- /// the closure immediatly to get an inner client to wrap, this function starts out disconnected and only calls
337+ /// the closure immediately to get an inner client to wrap, this function starts out disconnected and only calls
338338/// the closure to get the actual client when the capability is first used.
339339pub fn lazy_auto_reconnect < F , C > ( connect : F ) -> ( C , Box < dyn SetTarget < C > > )
340340where
0 commit comments