From a4d4dfb1b656c5d0890f7c4079a851b182a74c35 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Mon, 28 Jul 2025 11:06:18 +0200 Subject: [PATCH] Fix incorrect `vline.x` docs (#6657) --- crates/typst-library/src/layout/grid/mod.rs | 2 +- crates/typst-library/src/model/table.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index de540a578..d33e887a3 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -548,7 +548,7 @@ pub struct GridHLine { /// the grid's `row-gutter` option. #[elem(name = "vline", title = "Grid Vertical Line")] pub struct GridVLine { - /// The column before which the horizontal line is placed (zero-indexed). + /// The column before which the vertical line is placed (zero-indexed). /// If the `position` field is set to `{end}`, the line is placed after the /// column with the given index instead (see that field's docs for /// details). diff --git a/crates/typst-library/src/model/table.rs b/crates/typst-library/src/model/table.rs index 412ca4229..c815fc159 100644 --- a/crates/typst-library/src/model/table.rs +++ b/crates/typst-library/src/model/table.rs @@ -528,7 +528,7 @@ pub struct TableHLine { /// part of all your tables' designs. #[elem(name = "vline", title = "Table Vertical Line")] pub struct TableVLine { - /// The column before which the horizontal line is placed (zero-indexed). + /// The column before which the vertical line is placed (zero-indexed). /// Functions identically to the `x` field in [`grid.vline`]($grid.vline). pub x: Smart,