Fix code blocks in docstrings

This commit is contained in:
Joscha 2023-02-16 20:40:20 +01:00
parent 3f7e985b3f
commit eb36bfa2ea

View file

@ -16,7 +16,7 @@ pub struct BorderLook {
} }
impl BorderLook { impl BorderLook {
/// ``` /// ```text
/// +-------+ /// +-------+
/// | Hello | /// | Hello |
/// +-------+ /// +-------+
@ -32,7 +32,7 @@ impl BorderLook {
right: "|", right: "|",
}; };
/// ``` /// ```text
/// ┌───────┐ /// ┌───────┐
/// │ Hello │ /// │ Hello │
/// └───────┘ /// └───────┘
@ -48,7 +48,7 @@ impl BorderLook {
right: "", right: "",
}; };
/// ``` /// ```text
/// ┏━━━━━━━┓ /// ┏━━━━━━━┓
/// ┃ Hello ┃ /// ┃ Hello ┃
/// ┗━━━━━━━┛ /// ┗━━━━━━━┛
@ -64,7 +64,7 @@ impl BorderLook {
right: "", right: "",
}; };
/// ``` /// ```text
/// ╔═══════╗ /// ╔═══════╗
/// ║ Hello ║ /// ║ Hello ║
/// ╚═══════╝ /// ╚═══════╝