apply annotation comments

This commit is contained in:
yggverse 2024-10-18 20:47:06 +03:00
parent 82576b27dc
commit b298e02bc4

View file

@ -7,8 +7,8 @@ pub struct Multiline {
} }
impl Multiline { impl Multiline {
// Search in line for tag open, /// Search in line for tag open,
// return Self constructed on success or None /// return Self constructed on success or None
pub fn begin_from(line: &str) -> Option<Self> { pub fn begin_from(line: &str) -> Option<Self> {
if line.starts_with("```") { if line.starts_with("```") {
let alt = line.trim_start_matches("```"); let alt = line.trim_start_matches("```");
@ -26,8 +26,8 @@ impl Multiline {
None None
} }
// Continue preformatted buffer from line, /// Continue preformatted buffer from line,
// set `completed` as True on close tag found /// set `completed` as True on close tag found
pub fn continue_from(&mut self, line: &str) { pub fn continue_from(&mut self, line: &str) {
// Make sure buffer not completed yet // Make sure buffer not completed yet
if self.completed { if self.completed {