Skip to content

Commit

Permalink
fix capabilities methods doclinks
Browse files Browse the repository at this point in the history
  • Loading branch information
dequbed committed Feb 12, 2023
1 parent 15d3f48 commit 04f5c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl<T: Read + Write> Client<T> {
/// one of the listed capabilities. See [`Capabilities`] for further details.
///
/// This function will not query the server if a set of capabilities was cached, but request
/// and cache capabilities from the server otherwise. The [`Self::capabilities_refresh`] method
/// and cache capabilities from the server otherwise. The [`Self::current_capabilities`] method
/// can be used to refresh the cache by forcing a `CAPABILITY` command to be send.
pub fn capabilities(&mut self) -> Result<&Capabilities> {
let (mut tx, _rx) = mpsc::channel();
Expand Down Expand Up @@ -846,7 +846,7 @@ impl<T: Read + Write> Session<T> {
/// one of the listed capabilities. See [`Capabilities`] for further details.
///
/// This function will not query the server if a set of capabilities was cached, but request
/// and cache capabilities from the server otherwise. The [`Self::capabilities_refresh`] method
/// and cache capabilities from the server otherwise. The [`Self::current_capabilities`] method
/// can be used to refresh the cache by forcing a `CAPABILITY` command to be send.
pub fn capabilities(&mut self) -> Result<&Capabilities> {
if self.capability_cache.is_none() {
Expand Down

0 comments on commit 04f5c9e

Please sign in to comment.