summaryrefslogtreecommitdiff
path: root/src/syntax/span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/span.rs')
-rw-r--r--src/syntax/span.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax/span.rs b/src/syntax/span.rs
index 430d5f1d..2691acc7 100644
--- a/src/syntax/span.rs
+++ b/src/syntax/span.rs
@@ -125,7 +125,8 @@ impl Span {
*self = self.join(other)
}
- /// Create a new span with n characters inserted inside of this span.
+ /// Create a new span by specifying a span in which a modification happened
+ /// and how many characters are now in that span.
pub fn inserted(mut self, other: Self, n: usize) -> Self {
if !self.surrounds(other) {
panic!();