From 5aa9b90a7b3e7f5ed964bf6727e445bdfc5211cd Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Sun, 16 Feb 2025 21:15:13 +0100 Subject: [PATCH] fix repr --- crates/typst-library/src/foundations/selector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/foundations/selector.rs b/crates/typst-library/src/foundations/selector.rs index 312e5299f..7d76ac209 100644 --- a/crates/typst-library/src/foundations/selector.rs +++ b/crates/typst-library/src/foundations/selector.rs @@ -280,8 +280,8 @@ impl Repr for Selector { inclusive_arg ) } - Self::Within { selector, ancestor: children_selector } => { - eco_format!("{}.contains({})", selector.repr(), children_selector.repr()) + Self::Within { selector, ancestor } => { + eco_format!("{}.within({})", selector.repr(), ancestor.repr()) } } }