Skip to content

Commit

Permalink
Polish LspServiceBuilder::method documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkalderon committed Mar 11, 2022
1 parent 5d2c440 commit ab628e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ impl<S: LanguageServer> LspServiceBuilder<S> {
/// [`jsonrpc::Result<T>`](crate::jsonrpc::Result) are treated as **requests**.
///
/// Similar to the `params` argument, the `T` in the `Result<T>` return values may be of any
/// type which implements [`Deserialize`](serde::Deserialize). Additionally, this type must
/// also be convertible into a [`serde_json::Value`] using [`serde_json::to_value`]. If this
/// latter constraint is not met, the client will instead receive a JSON-RPC error response
/// with code `-32603` (Internal Error).
/// type which implements [`DeserializeOwned`](serde::de::DeserializeOwned). Additionally, this
/// type _must_ be convertible into a [`serde_json::Value`] using [`serde_json::to_value`]. If
/// this latter constraint is not met, the client will receive a JSON-RPC error response with
/// code `-32603` (Internal Error) instead of the expected response.
///
/// # Examples
///
Expand Down

0 comments on commit ab628e2

Please sign in to comment.