Skip to content

Commit 4602348

Browse files
committed
fix more typos
1 parent 0562e18 commit 4602348

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

capnp-rpc/examples/calculator/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl calculator::function::Server for OperatorImpl {
145145
) -> Promise<(), Error> {
146146
let params = pry!(pry!(params.get()).get_params());
147147
if params.len() != 2 {
148-
Promise::err(Error::failed("Wrong number of paramters.".to_string()))
148+
Promise::err(Error::failed("Wrong number of parameters.".to_string()))
149149
} else {
150150
let v = match self.op {
151151
calculator::Operator::Add => params.get(0) + params.get(1),

capnp-rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub trait OutgoingMessage {
135135
fn take(self: Box<Self>) -> ::capnp::message::Builder<::capnp::message::HeapAllocator>;
136136

137137
/// Gets the total size of the message, for flow control purposes. Although the caller
138-
/// could also call get_body().target_size(0, doing that would walk th emessage tree,
138+
/// could also call get_body().target_size(0, doing that would walk the message tree,
139139
/// whereas typical implementations can compute the size more cheaply by summing
140140
/// segment sizes.
141141
fn size_in_words(&self) -> usize;

capnp-rpc/src/reconnect.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
339339
pub fn lazy_auto_reconnect<F, C>(connect: F) -> (C, Box<dyn SetTarget<C>>)
340340
where

capnp-rpc/test/reconnect_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ fn auto_reconnect_rpc_call() {
323323
pool.run_until(disconnector).unwrap();
324324
}
325325

326-
/// lazyAutoReconnect() initialies lazily
326+
/// lazyAutoReconnect() initializes lazily
327327
#[test]
328328
fn lazy_auto_reconnect_test() {
329329
let mut pool = LocalPool::new();

capnpc/test/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ mod tests {
8282
}
8383

8484
#[test]
85-
fn field_subset_indexes_corrently() {
85+
fn field_subset_indexes_correctly() {
8686
use crate::test_capnp::field_subset_indexes_correctly;
8787
use capnp::{
8888
introspect::{Introspect, TypeVariant},

0 commit comments

Comments
 (0)