diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-10 18:16:29 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-10 18:16:29 +0000 |
commit | 607b9ea160149bacca41c0638f16d372c3b235cd (patch) | |
tree | c1ef9b29af2f080530fd3d79b9bb6622bcff0a2a /crates/test_utils/src | |
parent | 3e32e39da765632dd5c61d31b846bfa93738e786 (diff) | |
parent | d4621197447d6906305ed30f8ab4fb48d657ec86 (diff) |
Merge #7218
7218: Fix typos r=Veykril a=regexident
Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking.
Co-authored-by: Vincent Esche <[email protected]>
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r-- | crates/test_utils/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index 84c1d7ebb..e19d2ad61 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs | |||
@@ -63,7 +63,7 @@ pub fn extract_offset(text: &str) -> (TextSize, String) { | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | /// Returns the offset of the first occurence of `$0` marker and the copy of `text` | 66 | /// Returns the offset of the first occurrence of `$0` marker and the copy of `text` |
67 | /// without the marker. | 67 | /// without the marker. |
68 | fn try_extract_offset(text: &str) -> Option<(TextSize, String)> { | 68 | fn try_extract_offset(text: &str) -> Option<(TextSize, String)> { |
69 | let cursor_pos = text.find(CURSOR_MARKER)?; | 69 | let cursor_pos = text.find(CURSOR_MARKER)?; |