aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_text_edit
diff options
context:
space:
mode:
authorBernardo <[email protected]>2018-12-23 14:49:14 +0000
committerBernardo <[email protected]>2018-12-25 19:06:49 +0000
commit6b2da4e5474ec064e44b7cf19523de1bab72ba27 (patch)
tree2e9e353843eb08fb5b792bf674e52a747409a139 /crates/ra_text_edit
parentaff0124b37e34910190498ad519deb1aea0d8451 (diff)
use new translate_offset_with_edit for TryConvWith
doc comments
Diffstat (limited to 'crates/ra_text_edit')
-rw-r--r--crates/ra_text_edit/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_text_edit/src/lib.rs b/crates/ra_text_edit/src/lib.rs
index 89600413a..8acf10448 100644
--- a/crates/ra_text_edit/src/lib.rs
+++ b/crates/ra_text_edit/src/lib.rs
@@ -6,8 +6,10 @@ pub use crate::text_edit::{TextEdit, TextEditBuilder};
6 6
7use text_unit::{TextRange, TextUnit}; 7use text_unit::{TextRange, TextUnit};
8 8
9/// Must not overlap with other `AtomTextEdit`s
9#[derive(Debug, Clone)] 10#[derive(Debug, Clone)]
10pub struct AtomTextEdit { 11pub struct AtomTextEdit {
12 /// Refers to offsets in the original text
11 pub delete: TextRange, 13 pub delete: TextRange,
12 pub insert: String, 14 pub insert: String,
13} 15}