fix: merge_ws doc comment (#5924)

This commit is contained in:
Dan Cline
2024-01-03 08:02:56 -05:00
committed by GitHub
parent 1c32340b9b
commit d5975a3291

View File

@@ -1782,11 +1782,11 @@ impl TransportRpcModules {
&self.config
}
/// Merge the given Methods in the configured http methods.
/// Merge the given [Methods] in the configured http methods.
///
/// Fails if any of the methods in other is present already.
///
/// Returns Ok(false) if no http transport is configured.
/// Returns [Ok(false)] if no http transport is configured.
pub fn merge_http(
&mut self,
other: impl Into<Methods>,
@@ -1797,11 +1797,11 @@ impl TransportRpcModules {
Ok(false)
}
/// Merge the given Methods in the configured ws methods.
/// Merge the given [Methods] in the configured ws methods.
///
/// Fails if any of the methods in other is present already.
///
/// Returns Ok(false) if no http transport is configured.
/// Returns [Ok(false)] if no ws transport is configured.
pub fn merge_ws(
&mut self,
other: impl Into<Methods>,
@@ -1812,11 +1812,11 @@ impl TransportRpcModules {
Ok(false)
}
/// Merge the given Methods in the configured ipc methods.
/// Merge the given [Methods] in the configured ipc methods.
///
/// Fails if any of the methods in other is present already.
///
/// Returns Ok(false) if no ipc transport is configured.
/// Returns [Ok(false)] if no ipc transport is configured.
pub fn merge_ipc(
&mut self,
other: impl Into<Methods>,
@@ -1827,7 +1827,7 @@ impl TransportRpcModules {
Ok(false)
}
/// Merge the given Methods in all configured methods.
/// Merge the given [Methods] in all configured methods.
///
/// Fails if any of the methods in other is present already.
pub fn merge_configured(