Skip to content

Commit 52ed037

Browse files
committed
fix example
1 parent fdbf725 commit 52ed037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func ExampleProvider_ServeCodec() {
4646
// This example shows the plugin creating a JSON-RPC client talks to the host
4747
// application.
4848
func ExampleNewConsumerCodec() {
49-
client := pie.NewConsumerCodec(jsonrpc.NewServerCodec)
49+
client := pie.NewConsumerCodec(jsonrpc.NewClientCodec)
5050
var reply string
5151
client.Call("Foo.ToUpper", "something", &reply)
5252
}

0 commit comments

Comments
 (0)