on master help sign in
Fix selection remove doc comment (#1122)
90fd09fath3
helix-core/src/selection.rs+1−1
@@ -360,7 +360,7 @@ impl Selection {
360 self.normalize()
360 self.normalize()
361 }
361 }
362
362
363− /// Adds a new range to the selection and makes it the primary range.
363+ /// Removes a range from the selection.
364 pub fn remove(mut self, index: usize) -> Self {
364 pub fn remove(mut self, index: usize) -> Self {
365 assert!(
365 assert!(
366 self.ranges.len() > 1,
366 self.ranges.len() > 1,