mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Update lib.rs
This commit is contained in:
parent
53be113617
commit
2592f3168f
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue