From fed79c6ec78d86cc4bd400c025ae27586a3511a8 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 5 Sep 2024 19:36:21 +0200 Subject: [PATCH] Update documentation on jsonrpc2.NewDispatchHandler --- go/daemon/jsonrpc2/dispatcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/daemon/jsonrpc2/dispatcher.go b/go/daemon/jsonrpc2/dispatcher.go index 4d25ece..a06fbdb 100644 --- a/go/daemon/jsonrpc2/dispatcher.go +++ b/go/daemon/jsonrpc2/dispatcher.go @@ -79,7 +79,8 @@ type dispatcher struct { // value to dispatch RPC calls. The passed in value must be a pointer. All // exported methods which look like: // -// MethodName(context.Context, ParamType) (ResponseType, error) +// MethodName(context.Context, ...ParamType) (ResponseType, error) +// MethodName(context.Context, ...ParamType) error // // will be available via RPC calls. func NewDispatchHandler(i any) Handler {