diff --git a/Sources/NIO/Codec.swift b/Sources/NIO/Codec.swift index 5bd68f4e7..601496e2a 100644 --- a/Sources/NIO/Codec.swift +++ b/Sources/NIO/Codec.swift @@ -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