diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-09 12:20:05 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-09 12:20:05 +0000 |
commit | 76b3985d70f850e22e6cc630230e56dd7cb96f9a (patch) | |
tree | d0d9586bcdf5d8efc1b7d031810ece7093c482d3 /crates/ra_hir/src/ty | |
parent | c0f48f9eb091b5054acb98575c69c67a0aeefb7b (diff) | |
parent | 0b8fbb4fad97d2980f0070a23f5365a5ed887e2a (diff) |
Merge #473
473: Partial typo fix r=matklad a=marcusklaas
This fixes some typos. Mostly in documentation, but also some code is affected (`defenition` was used in a few method names).
Co-authored-by: Marcus Klaas de Vries <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/autoderef.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/autoderef.rs b/crates/ra_hir/src/ty/autoderef.rs index 24a386558..d95879e46 100644 --- a/crates/ra_hir/src/ty/autoderef.rs +++ b/crates/ra_hir/src/ty/autoderef.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | //! In certain situations, rust automatically inserts derefs as necessary: For | 1 | //! In certain situations, rust automatically inserts derefs as necessary: for |
2 | //! example, field accesses `foo.bar` still work when `foo` is actually a | 2 | //! example, field accesses `foo.bar` still work when `foo` is actually a |
3 | //! reference to a type with the field `bar`. This is an approximation of the | 3 | //! reference to a type with the field `bar`. This is an approximation of the |
4 | //! logic in rustc (which lives in librustc_typeck/check/autoderef.rs). | 4 | //! logic in rustc (which lives in librustc_typeck/check/autoderef.rs). |
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 2749d740c..ba2a44474 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -15,7 +15,7 @@ use crate::{ | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | // These tests compare the inference results for all expressions in a file | 17 | // These tests compare the inference results for all expressions in a file |
18 | // against snapshots of the current results. If you change something and these | 18 | // against snapshots of the expected results. If you change something and these |
19 | // tests fail expectedly, you can update the comparison files by deleting them | 19 | // tests fail expectedly, you can update the comparison files by deleting them |
20 | // and running the tests again. Similarly, to add a new test, just write the | 20 | // and running the tests again. Similarly, to add a new test, just write the |
21 | // test here in the same pattern and it will automatically write the snapshot. | 21 | // test here in the same pattern and it will automatically write the snapshot. |