Skip to content

Commit

Permalink
Fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 6, 2024
1 parent 7a62d07 commit d1218c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/egui_extras/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,9 @@ impl<'a> TableBody<'a> {
/// let row_height = 18.0;
/// let num_rows = 10_000;
/// body.rows(row_height, num_rows, |mut row| {
/// let row_index = row.index();
/// row.col(|ui| {
/// ui.label(format!("First column of row {}", row.index()));
/// ui.label(format!("First column of row {row_index}"));
/// });
/// });
/// });
Expand Down

0 comments on commit d1218c7

Please sign in to comment.