From 1ae94dc4c438ce7e27cc7c88e5cf0267b978cb30 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sun, 1 May 2022 21:27:14 -0700 Subject: [PATCH] Clarify README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 035cf2e..b7bc6c9 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,6 @@ This RPC framework supports creating channels to transfer data from server to cl ### Codec -When creating a server or client, a `CodecFunc` can be provided. This `CodecFunc` is provided with an `io.ReadWriter` and returns a `Codec`, which is an interface that contains encode and decode functions with the same signature ad `json.Decoder.Decode()` and `json.Encoder.Encode()`. +When creating a server or client, a `CodecFunc` can be provided. An `io.ReadWriter` is passed into the `CodecFunc` and it returns a `Codec`, which is an interface that contains encode and decode functions with the same signature as `json.Decoder.Decode()` and `json.Encoder.Encode()`. This allows any codec to be used for the transfer of the data, making it easy to create clients in different languages. \ No newline at end of file