Skip to content

Commit

Permalink
De-stutter language slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Feb 6, 2022
1 parent 1a458a9 commit 725cb1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ the Handler interface. For example, suppose we want to export this Add function
return sum
}
To convert Add to a jrpc2.Handler, call handler.New, which wraps its argument
into the jrpc2.Handler interface via the handler.Func type:
To convert Add to a handler, call handler.New, which wraps its argument in a a
handler.Func, which satisfies the jrpc2.Handler interface:
h := handler.New(Add) // h is now a jrpc2.Handler that calls Add
h := handler.New(Add) // h is now a handler.Func that calls Add
The handler package also provides handler.Map, which implements the Assigner
interface with a Go map. To advertise this function under the name "Add":
Expand Down

0 comments on commit 725cb1d

Please sign in to comment.