Skip to content

Commit

Permalink
Clean up references to the interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Dec 10, 2022
1 parent 8033453 commit 542dad0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions base.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ type Namer interface {
//
// req := jrpc2.InboundRequest(ctx)
//
// The latter is primarily useful for handlers generated by handler.New,
// which do not receive the request directly. For a handler that implements
// the Handle method directly, req is the same value passed as a parameter
// to Handle.
// The latter is primarily useful for wrappers generated by handler.New, which
// do not receive the request directly.
type Handler = func(context.Context, *Request) (any, error)

// A Request is a request message from a client to a server.
Expand Down

0 comments on commit 542dad0

Please sign in to comment.