From 0a41844cc4e645e87fe48aa31ed3a4fd40a6ab11 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 7 Nov 2022 14:30:50 +0100 Subject: Selectors --- src/syntax/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 1b0e8985..547545c7 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1358,8 +1358,8 @@ node! { } impl ShowRule { - /// The pattern that this rule matches. - pub fn pattern(&self) -> Option { + /// Defines which nodes the show rule applies to. + pub fn selector(&self) -> Option { self.0 .children() .rev() -- cgit v1.2.3