Skip to content

Commit f040284

Browse files
authored
Merge pull request #11 from ReinierMaas/patch-1
Typos: one -> on | main -> maintain
2 parents 6e835d0 + c6e2e17 commit f040284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2019-11-13-find-usages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ date: 2019-11-13 11:00:00 +0200
77
Last month, rust-analyzer gained an exciting new feature: find usages. It was implemented by [@viorina] in [#1892].
88

99
This post describes how the feature works under the hood.
10-
It's an excellent case study to compare approaches of traditional compilers with IDE-oriented compilers (shortened to IDE from now one).
10+
It's an excellent case study to compare approaches of traditional compilers with IDE-oriented compilers (shortened to IDE from now on).
1111

1212
[@viorina]: https://github.com/viorina
1313
[#1892]: https://github.com/rust-analyzer/rust-analyzer/pull/1892
@@ -139,7 +139,7 @@ In general, laziness (ability to ignore most of the code) and incrementality (ab
139139
First and foremost, an IDE requires laziness, although incrementality can be used as well to speed some things up.
140140

141141
In particular, it is possible to make the text-based phase of reference search incremental.
142-
An IDE can main a trigram index: for each three-byte sequence, a list of files and positions where this sequence occurs.
142+
An IDE can maintain a trigram index: for each three-byte sequence, a list of files and positions where this sequence occurs.
143143
Unlike symbol tables, such index is easy to maintain, as any change in a file can only affect trigrams from this file.
144144
The index can then be used to speedup text search.
145145
The result is the following *find usages* funnel:

0 commit comments

Comments
 (0)