mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 07:07:32 +00:00
Fixed typos in code comments
This commit is contained in:
parent
939ca83b34
commit
21f8239ac8
23 changed files with 42 additions and 42 deletions
|
@ -63,7 +63,7 @@ pub fn extract_offset(text: &str) -> (TextSize, String) {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the offset of the first occurence of `$0` marker and the copy of `text`
|
||||
/// Returns the offset of the first occurrence of `$0` marker and the copy of `text`
|
||||
/// without the marker.
|
||||
fn try_extract_offset(text: &str) -> Option<(TextSize, String)> {
|
||||
let cursor_pos = text.find(CURSOR_MARKER)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue