diff --git a/core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java b/core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java index 8ca3d1223740..df76187b06fa 100644 --- a/core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java +++ b/core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java @@ -125,7 +125,7 @@ public static PlanMatchPattern any(PlanMatchPattern... sources) /** * Matches to any tree of nodes with children matching to given source matchers. - * anyNodeTree(tableScanNode("nation")) - will match to any plan which all leafs contain + * anyTree(tableScan("nation")) - will match to any plan which all leafs contain * any node containing table scan from nation table. * * @note anyTree does not match zero nodes. E.g. output(anyTree(tableScan)) will NOT match TableScan node followed by OutputNode.