Skip to content

Commit a0684b6

Browse files
authored
Merge pull request #214 from matklad/matklad/typos
typos
2 parents 5ed0e1e + ca0dac5 commit a0684b6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: blog/_posts/2023-12-26-the-heart-of-a-language-server.adoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ impl LocalVariable {
143143
let parent_function_syntax = self.parent.source_syntax()
144144
parent_function_syntax
145145
.descendants()
146-
.filter(|it| it.kind == SyntaxNodeKind::LocalVariable)
146+
.filter(|it| {
147+
it.kind == SyntaxNodeKind::LocalVariable
148+
})
147149
.nth(self.ordinal)
148150
.unwrap()
149151
}
@@ -196,7 +198,7 @@ In this formulation, a language server needs to just enough analysis to drill do
196198
Consider this example:
197199

198200
[source,rust]
199-
---
201+
----
200202
struct RangeIter {
201203
lo: u32,
202204
hi: u32,
@@ -214,7 +216,7 @@ impl Iterator for RangeIter {
214216
impl RangeIter {
215217
...
216218
}
217-
---
219+
----
218220

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

0 commit comments

Comments
 (0)