Skip to content
Merged

typos #214

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions blog/_posts/2023-12-26-the-heart-of-a-language-server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ impl LocalVariable {
let parent_function_syntax = self.parent.source_syntax()
parent_function_syntax
.descendants()
.filter(|it| it.kind == SyntaxNodeKind::LocalVariable)
.filter(|it| {
it.kind == SyntaxNodeKind::LocalVariable
})
.nth(self.ordinal)
.unwrap()
}
Expand Down Expand Up @@ -196,7 +198,7 @@ In this formulation, a language server needs to just enough analysis to drill do
Consider this example:

[source,rust]
---
----
struct RangeIter {
lo: u32,
hi: u32,
Expand All @@ -214,7 +216,7 @@ impl Iterator for RangeIter {
impl RangeIter {
...
}
---
----

Starting from the `Item` syntax node, the language server will consider:

Expand Down