From ab628e203f27eb9c4c5b75d5fa7d085e4acd3d74 Mon Sep 17 00:00:00 2001 From: Eyal Kalderon Date: Thu, 10 Mar 2022 21:02:34 -0500 Subject: [PATCH] Polish LspServiceBuilder::method documentation --- src/service.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ///