Skip to content

Commit

Permalink
Fix code comments errrors (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
intls authored Jan 17, 2025
1 parent fc37819 commit c27dd64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ impl FfiStreamCloser {
self.abort_handle.end();
}

/// End the stream and asyncronously wait for it to shutdown
/// End the stream and asynchronously wait for it to shutdown
pub async fn end_and_wait(&self) -> Result<(), GenericError> {
use xmtp_mls::StreamHandleError::*;
use GenericError::Generic;
Expand Down
2 changes: 1 addition & 1 deletion bindings_node/src/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl StreamCloser {

/// End the stream and `await` for it to shutdown
/// Returns the `Result` of the task.
/// End the stream and asyncronously wait for it to shutdown
/// End the stream and asynchronously wait for it to shutdown
#[napi]
pub async fn end_and_wait(&self) -> Result<(), Error> {
use StreamHandleError::*;
Expand Down
6 changes: 3 additions & 3 deletions xmtp_mls/src/stream_handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub trait StreamHandle {
/// The Output type for the stream
type StreamOutput;

/// Asyncronously waits for the stream to be fully spawned
/// Asynchronously waits for the stream to be fully spawned
async fn wait_for_ready(&mut self);
/// Signal the stream to end
/// Does not wait for the stream to end, so will not receive the result of stream.
Expand All @@ -47,7 +47,7 @@ pub trait StreamHandle {
/// Join the task back to the current thread, waiting until it ends.
async fn join(self) -> Result<Self::StreamOutput, StreamHandleError>;

/// End the stream and asyncronously wait for it to shutdown, getting the result of its
/// End the stream and asynchronously wait for it to shutdown, getting the result of its
/// execution.
async fn end_and_wait(&mut self) -> Result<Self::StreamOutput, StreamHandleError>;
/// Get an Abort Handle to the stream.
Expand Down Expand Up @@ -146,7 +146,7 @@ mod wasm {

/// Spawn a future on the `wasm-bindgen` local current-thread executer
/// future does not require `Send`.
/// optionally pass in `ready` to signal whne stream will be ready.
/// optionally pass in `ready` to signal when stream will be ready.
pub fn spawn<F>(
ready: Option<tokio::sync::oneshot::Receiver<()>>,
future: F,
Expand Down

0 comments on commit c27dd64

Please sign in to comment.