From 2592f3168fc438381096ac399f61a3b0f8e0361f Mon Sep 17 00:00:00 2001 From: abdullathedruid Date: Tue, 18 Jun 2024 00:52:53 +0100 Subject: [PATCH] Update lib.rs --- crates/syntax/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs index cb23755861..b5d816b0ce 100644 --- a/crates/syntax/src/lib.rs +++ b/crates/syntax/src/lib.rs @@ -442,7 +442,7 @@ fn api_walkthrough() { assert!(expr_syntax.siblings_with_tokens(Direction::Next).any(|it| it.kind() == T!['}'])); assert_eq!( expr_syntax.descendants_with_tokens().count(), - 8, // 5 tokens `1`, ` `, `+`, ` `, `!` + 8, // 5 tokens `1`, ` `, `+`, ` `, `1` // 2 child literal expressions: `1`, `1` // 1 the node itself: `1 + 1` );