diff --git a/README.md b/README.md index 9b6fdb2..44b1933 100644 --- a/README.md +++ b/README.md @@ -502,16 +502,16 @@ func main() { ### Change default RPCRequestID By default, the client will set the id of an RPCRequest to 0. -This can be changed by setting the RPCClientOpts.DefaultRPCRequestID to a custom value: +This can be changed by setting the RPCClientOpts.DefaultRequestID to a custom value: ```go func main() { rpcClient := jsonrpc.NewClientWithOpts("http://my-rpc-service:8080/rpc", &jsonrpc.RPCClientOpts{ - DefaultRPCRequestID: 1, + DefaultRequestID: 1, }) // requests now have default id 1 } ``` -You may also use NewRequestWithID() to set a custom id when creating a raw request. \ No newline at end of file +You may also use NewRequestWithID() to set a custom id when creating a raw request.