Skip to content

Commit

Permalink
doc: reference ClientBuilder::set_data instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kitgxrl committed May 15, 2024
1 parent d18cb8f commit 0175908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion socketio/src/asynchronous/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Client {
})
}

/// Attempts to fetch data given by [`ClientBuilder::data`]
/// Attempts to fetch data given by [`ClientBuilder::set_data`]
///
/// None is returned if data was not given or data does not match [`ClientBuilder::data`]
pub fn custom_data<D: Send + Sync + 'static>(&self) -> Option<Arc<D>> {
Expand Down
4 changes: 2 additions & 2 deletions socketio/src/client/raw_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::time::Duration;
use std::time::Instant;

use crate::socket::Socket as InnerSocket;
use crate::asynchronous::ClientBuilder;
use crate::client::builder::ClientBuilder;

/// Represents an `Ack` as given back to the caller. Holds the internal `id` as
/// well as the current ack'ed state. Holds data which will be accessible as
Expand Down Expand Up @@ -69,7 +69,7 @@ impl RawClient {
})
}

/// Attempts to fetch data given by [`ClientBuilder::data`]
/// Attempts to fetch data given by [`ClientBuilder::set_data`]
///
/// None is returned if data was not given or data does not match [`ClientBuilder::data`]
pub fn custom_data<D: Send + Sync + 'static>(&self) -> Option<Arc<D>> {
Expand Down

0 comments on commit 0175908

Please sign in to comment.