diff --git a/src/service.rs b/src/service.rs index 544110c7..d24b70a9 100644 --- a/src/service.rs +++ b/src/service.rs @@ -155,10 +155,10 @@ impl LspServiceBuilder { /// [`jsonrpc::Result`](crate::jsonrpc::Result) are treated as **requests**. /// /// Similar to the `params` argument, the `T` in the `Result` 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 ///