Clarify description of Table in docs

This commit is contained in:
Héctor Ramón Jiménez 2025-07-18 21:22:21 +02:00
parent 729a09fa4e
commit 420de7150d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -12,7 +12,7 @@ use crate::core::{
/// Creates a new [`Table`] with the given columns and rows.
///
/// Columns can be created using the [`column`] function, while rows can be any
/// Columns can be created using the [`column()`] function, while rows can be any
/// iterator over some data type `T`.
pub fn table<'a, 'b, T, Message, Theme, Renderer>(
columns: impl IntoIterator<Item = Column<'a, 'b, T, Message, Theme, Renderer>>,
@ -47,7 +47,7 @@ where
}
}
/// A grid-like visual representation of data of columns and rows.
/// A grid-like visual representation of data distributed in columns and rows.
#[allow(missing_debug_implementations)]
pub struct Table<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
where
@ -77,7 +77,7 @@ where
{
/// Creates a new [`Table`] with the given columns and rows.
///
/// Columns can be created using the [`column`] function, while rows can be any
/// Columns can be created using the [`column()`] function, while rows can be any
/// iterator over some data type `T`.
pub fn new<'b, T>(
columns: impl IntoIterator<