update comment

This commit is contained in:
yggverse 2024-11-01 05:29:45 +02:00
parent 748ccabebb
commit 1b1ab6bea0

View file

@ -34,7 +34,7 @@ impl Mime {
/// * result could be `None` for some [status codes](https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes) that does not expect MIME type in header
/// * includes `Self::from_string` parser, it means that given buffer should contain some **header** (not filepath or any other type of strings)
pub fn from_utf8(buffer: &[u8]) -> Result<Option<Self>, Error> {
// Define max buffer length for this parser
// Define max buffer length for this method
const MAX_LEN: usize = 0x400; // 1024
// Calculate buffer length once