Skip to content

Commit 67501ee

Browse files
committed
fixes small typos in docs and indent issue
1 parent 3f6d9e2 commit 67501ee

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

docs/book/src/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Vim](./other_editors.md#coc-rust-analyzer) provide `rust-analyzer` specific conf
1313
UIs. Others may require you to know a bit more about the interaction
1414
with `rust-analyzer`.
1515

16-
For the later category, it might help to know that the initial
16+
For the latter category, it might help to know that the initial
1717
configuration is specified as a value of the `initializationOptions`
1818
field of the [`InitializeParams` message, in the LSP
1919
protocol](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#initialize).

docs/book/src/contributing/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ of type `V`. Queries come in two basic varieties:
235235
intelligently) when we can re-use these memoized values and when we have to
236236
recompute them.
237237

238-
For further discussion, its important to understand one bit of "fairly
238+
For further discussion, it's important to understand one bit of "fairly
239239
intelligently". Suppose we have two functions, `f1` and `f2`, and one input,
240240
`z`. We call `f1(X)` which in turn calls `f2(Y)` which inspects `i(Z)`. `i(Z)`
241241
returns some value `V1`, `f2` uses that and returns `R1`, `f1` uses that and

docs/book/src/contributing/lsp-extensions.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ interface TestItem {
455455
// A human readable name for this test
456456
label: string;
457457
// The kind of this test item. Based on the kind,
458-
// an icon is chosen by the editor.
458+
// an icon is chosen by the editor.
459459
kind: "package" | "module" | "test";
460460
// True if this test may have children not available eagerly
461461
canResolveChildren: boolean;
@@ -467,19 +467,19 @@ interface TestItem {
467467
// like debugging, this field is useful.
468468
// Note that this field includes some information about label and location as well, but
469469
// those exist just for keeping things in sync with other methods of running runnables
470-
// (for example using one consistent name in the vscode's launch.json) so for any propose
470+
// (for example using one consistent name in the vscode's launch.json) so for any purpose
471471
// other than running tests this field should not be used.
472472
runnable?: Runnable | undefined;
473473
};
474474

475475
interface DiscoverTestResults {
476476
// The discovered tests.
477477
tests: TestItem[];
478-
// For each test which its id is in this list, the response
478+
// For each test whose id is in this list, the response
479479
// contains all tests that are children of this test, and
480480
// client should remove old tests not included in the response.
481481
scope: string[] | undefined;
482-
// For each file which its uri is in this list, the response
482+
// For each file whose uri is in this list, the response
483483
// contains all tests that are located in this file, and
484484
// client should remove old tests not included in the response.
485485
scopeFile: lc.TextDocumentIdentifier[] | undefined;
@@ -491,7 +491,7 @@ interface DiscoverTestResults {
491491
**Notification:** `DiscoverTestResults`
492492

493493
This notification is sent from the server to the client when the
494-
server detect changes in the existing tests. The `DiscoverTestResults` is
494+
server detects changes in the existing tests. The `DiscoverTestResults` is
495495
the same as the one in `experimental/discoverTest` response.
496496

497497
**Method:** `experimental/runTest`
@@ -527,7 +527,7 @@ after this.
527527

528528
This notification is sent from the client to the server when the user is no longer
529529
interested in the test results. The server should clean up its resources and send
530-
a `experimental/endRunTest` when is done.
530+
a `experimental/endRunTest` when it is done.
531531

532532
**Method:** `experimental/changeTestState`
533533

@@ -648,8 +648,8 @@ interface ServerStatusParams {
648648
```
649649

650650
This notification is sent from server to client.
651-
The client can use it to display *persistent* status to the user (in modline).
652-
It is similar to the `showMessage`, but is intended for stares rather than point-in-time events.
651+
The client can use it to display *persistent* status to the user (in the mode line).
652+
It is similar to the `showMessage`, but is intended for status rather than point-in-time events.
653653

654654
Note that this functionality is intended primarily to inform the end user about the state of the server.
655655
In particular, it's valid for the client to completely ignore this extension.
@@ -1070,13 +1070,13 @@ export interface RecursiveMemoryLayoutNode = {
10701070
size: number;
10711071
/// Alignment of the type in bytes
10721072
alignment: number;
1073-
/// Offset of the type relative to its parent (or 0 if its the root)
1073+
/// Offset of the type relative to its parent (or 0 if it's the root)
10741074
offset: number;
1075-
/// Index of the node's parent (or -1 if its the root)
1075+
/// Index of the node's parent (or -1 if it's the root)
10761076
parent_idx: number;
10771077
/// Index of the node's children (or -1 if it does not have children)
10781078
children_start: number;
1079-
/// Number of child nodes (unspecified it does not have children)
1079+
/// Number of child nodes (unspecified if it does not have children)
10801080
children_len: number;
10811081
};
10821082

docs/book/src/contributing/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Modeling this with immutable trees is possible, but annoying.
192192

193193
A function green tree is not super-convenient to use.
194194
The biggest problem is accessing parents (there are no parent pointers!).
195-
But there are also "identify" issues.
195+
But there are also "identity" issues.
196196
Let's say you want to write a code which builds a list of expressions in a file: `fn collect_expressions(file: GreenNode) -> HashSet<GreenNode>`.
197197
For the input like
198198

0 commit comments

Comments
 (0)