Skip to content

Commit

Permalink
docs: update material docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Dec 8, 2024
1 parent 702b1e0 commit 3084286
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/ui/material/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use bevy_ui::{
Overflow, UiRect, Val,
};

/// Create a material UI button.
/// Create a material UI container.
pub fn container<'a, C>(content: C) -> Container<'a, C> {
Container {
content,
Expand All @@ -23,7 +23,9 @@ pub fn container<'a, C>(content: C) -> Container<'a, C> {
}
}

/// Material UI button.
/// Material UI container.
///
/// For more see [`container`].
#[derive(Clone, Debug, Data)]
#[actuate(path = "crate")]
pub struct Container<'a, C> {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/material/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Index<TypographyStyleKind> for TypographyToken {
}
}

/// Typography style kind.
/// Typography kind.
#[derive(Clone, Copy)]
pub enum TypographyKind {
/// Body typography.
Expand Down

0 comments on commit 3084286

Please sign in to comment.