docs: explicitly specify plaintext format

This commit is contained in:
DarkCat09 2024-09-09 19:05:18 +04:00
parent 42a43f175e
commit 719083bad2
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -13,8 +13,8 @@ pub struct KnownHostsFile {
impl KnownHostsFile {
/// Read or create a known_hosts file at the given path.
/// Format of known_hosts is: _(fields are separated by any space sequence)_
/// ```
/// #host expires algo base64 fingerprint
/// ```text
/// # host expires algo base64 fingerprint
/// dc09.ru 1722930541 sha512 dGVzdHRlc3R0ZXN0Cg
/// ```
pub async fn parse_file(path: impl AsRef<Path>) -> std::io::Result<KnownHostsFile> {