diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-07 20:50:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-07 20:50:46 +0800 |
| commit | aaae6cf9c9607574c667bcebb990c68ed5d22f51 (patch) | |
| tree | 8f104fafb8b590ab48985c3a60c467d992763776 | |
| parent | 44ea65ffa544671b1ddbcbada0849e92124da432 (diff) | |
fix: correct docs for parse function in utils::display
| -rw-r--r-- | mingling_cli/src/utils/display.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mingling_cli/src/utils/display.rs b/mingling_cli/src/utils/display.rs index 09eb4e4..d2550e3 100644 --- a/mingling_cli/src/utils/display.rs +++ b/mingling_cli/src/utils/display.rs @@ -67,14 +67,14 @@ impl ColorCode for String { /// /// # Examples /// ``` -/// # use mingling_cli::display::markdown; -/// let formatted = markdown("Hello **world**!"); +/// # use mingling_cli::utils::display::parse; +/// let formatted = parse("Hello **world**!"); /// println!("{}", formatted); /// -/// let colored = markdown("[[red]]Red text[[/]] and normal text"); +/// let colored = parse("[[red]]Red text[[/]] and normal text"); /// println!("{}", colored); /// -/// let nested = markdown("[[blue]]Blue [[green]]Green[[/]] Blue[[/]] normal"); +/// let nested = parse("[[blue]]Blue [[green]]Green[[/]] Blue[[/]] normal"); /// println!("{}", nested); /// ``` pub fn parse(text: impl AsRef<str>) -> String { |
