#1714 Update Codec.swift (#1873)

* Update Codec.swift

* Update Sources/NIO/Codec.swift

Co-authored-by: Cory Benfield <lukasa@apple.com>

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
akash-55andCory Benfield authored and GitHub committed 2021-06-09 15:57:47 +01:00
1 parent 6d05b4f64b
commit 7688cf712f
1 file changed
+3 -1
+3 -1
View File
@@ -60,7 +60,9 @@ extension ByteToMessageDecoderError {
///
/// ### Implementing ByteToMessageDecoder
///
/// A type that implements `ByteToMessageDecoder` must implement two methods: `decode` and `decodeLast`.
/// A type that implements `ByteToMessageDecoder` may implement two methods: decode and decodeLast. Implementations
/// must implement decode: if they do not implement decodeLast, a default implementation will be used that
/// simply calls decode.
///
/// `decode` is the main decoding method, and is the one that will be called most often. `decode` is invoked
/// whenever data is received by the wrapping `ByteToMessageHandler`. It is invoked with a `ByteBuffer` containing