Doc string fix in selection.rs (#6077)

* Doc string fix

Delete duplicate `the`

* selection.rs doc string wording

* Remove extra whitespace at end of doc text

---------

Co-authored-by: Ivan Tham <pickfire@riseup.net>
pull/6084/head
Alexandr 2 years ago committed by GitHub
parent 1a87d14439
commit 8043959265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,14 +21,14 @@ use std::borrow::Cow;
/// can be in any order, or even share the same position. /// can be in any order, or even share the same position.
/// ///
/// The anchor and head positions use gap indexing, meaning /// The anchor and head positions use gap indexing, meaning
/// that their indices represent the the gaps *between* `char`s /// that their indices represent the gaps *between* `char`s
/// rather than the `char`s themselves. For example, 1 /// rather than the `char`s themselves. For example, 1
/// represents the position between the first and second `char`. /// represents the position between the first and second `char`.
/// ///
/// Below are some example `Range` configurations to better /// Below are some examples of `Range` configurations.
/// illustrate. The anchor and head indices are show as /// The anchor and head indices are shown as "(anchor, head)"
/// "(anchor, head)", followed by example text with "[" and "]" /// tuples, followed by example text with "[" and "]" symbols
/// inserted to represent the anchor and head positions: /// representing the anchor and head positions:
/// ///
/// - (0, 3): `[Som]e text`. /// - (0, 3): `[Som]e text`.
/// - (3, 0): `]Som[e text`. /// - (3, 0): `]Som[e text`.

Loading…
Cancel
Save