Skip to content

Commit

Permalink
Minor docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nick42d committed Nov 18, 2024
1 parent 77cddc3 commit 0e01169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtui/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pub async fn send_or_error<T, S: Borrow<mpsc::Sender<T>>>(tx: S, msg: T) {
.unwrap_or_else(|e| error!("Error {e} received when sending message"));
}

/// Send a message to the specified Tokio mpsc::Sender, and if sending fails,
/// log an error with Tracing.
/// Send a streaming callback to the specified AsyncCallbackSender, and if
/// sending fails, log an error with Tracing.
pub fn add_stream_cb_or_error<Bkend, Frntend, Cstrnt, R>(
sender: &AsyncCallbackSender<Bkend, Frntend, Cstrnt>,
// Bounds are from AsyncCallbackSender's own impl.
Expand All @@ -30,7 +30,7 @@ pub fn add_stream_cb_or_error<Bkend, Frntend, Cstrnt, R>(
.unwrap_or_else(|e| error!("Error {e} received when sending message"));
}

/// Send a message to the specified Tokio mpsc::Sender, and if sending fails,
/// Send a callback to the specified AsyncCallbackSender, and if sending fails,
/// log an error with Tracing.
pub fn add_cb_or_error<Bkend, Frntend, Cstrnt, R>(
sender: &AsyncCallbackSender<Bkend, Frntend, Cstrnt>,
Expand Down

0 comments on commit 0e01169

Please sign in to comment.