aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src/component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-chat/src/component.rs')
-rw-r--r--azalea-chat/src/component.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs
index 87886e96..30b0ed9d 100644
--- a/azalea-chat/src/component.rs
+++ b/azalea-chat/src/component.rs
@@ -76,19 +76,22 @@ impl FormattedText {
/// Render all components into a single `String`, using your custom
/// closures to drive styling, text transformation, and final cleanup.
///
- /// # Type params
+ /// # Type parameters
+ ///
/// - `F`: `(running, component, default) -> (prefix, suffix)` for
/// per-component styling
/// - `S`: `&str -> String` for text tweaks (escaping, mapping, etc.)
/// - `C`: `&final_running_style -> String` for any trailing cleanup
///
- /// # Args
- /// - `style_formatter`: how to open/close each component’s style
- /// - `text_formatter`: how to turn raw text into output text
+ /// # Arguments
+ ///
+ /// - `style_formatter`: how to open/close each component's style
+ /// - `text_formatter`: how to turn raw text into output text
/// - `cleanup_formatter`: emit after all components (e.g. reset codes)
- /// - `default_style`: where to reset when a component’s `reset` is true
+ /// - `default_style`: where to reset when a component's `reset` is true
///
/// # Example
+ ///
/// ```rust
/// use azalea_chat::{FormattedText, DEFAULT_STYLE};
/// use serde::de::Deserialize;