aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/selection.rs
diff options
context:
space:
mode:
authorath32021-11-18 00:49:56 +0000
committerGitHub2021-11-18 00:49:56 +0000
commit90fd09f2cc4e5dfa7380036b0748adf95ffdf371 (patch)
tree34abd45434970ada6cf05a0b39a02724f323376c /helix-core/src/selection.rs
parent1132b7088a853f1edac451a34ad1cbbba03e1f26 (diff)
Fix selection remove doc comment (#1122)
Diffstat (limited to 'helix-core/src/selection.rs')
-rw-r--r--helix-core/src/selection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs
index f7c7dbcb..b4d1dffa 100644
--- a/helix-core/src/selection.rs
+++ b/helix-core/src/selection.rs
@@ -360,7 +360,7 @@ impl Selection {
self.normalize()
}
- /// Adds a new range to the selection and makes it the primary range.
+ /// Removes a range from the selection.
pub fn remove(mut self, index: usize) -> Self {
assert!(
self.ranges.len() > 1,