mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
update comment
This commit is contained in:
parent
2331bf8e27
commit
ebfdf6a1d0
1 changed files with 4 additions and 2 deletions
|
|
@ -5,7 +5,9 @@ use glib::GString;
|
|||
|
||||
/// Entire meta buffer, but [status code](https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes).
|
||||
///
|
||||
/// Useful to grab placeholder text on 10, 11, 31 codes processing
|
||||
/// Use as:
|
||||
/// * placeholder value for 10, 11
|
||||
/// * URL for 30, 31
|
||||
pub struct Meta {
|
||||
buffer: Vec<u8>,
|
||||
}
|
||||
|
|
@ -16,7 +18,7 @@ impl Meta {
|
|||
Some(value) => Ok(Self {
|
||||
buffer: value.to_vec(),
|
||||
}),
|
||||
None => return Err(Error::Protocol),
|
||||
None => return Err(Error::Protocol), // @TODO optional
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue