diff options
| author | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-22 18:15:49 +0200 |
|---|---|---|
| committer | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-22 18:15:49 +0200 |
| commit | 9bc0dbeb6415b205df8336edca438a7ff4468adf (patch) | |
| tree | 8c144a96381cfdde7d60b00d8a4e3065212929da /src/string.rs | |
| parent | 25ebc35f973f9431b3a3ce03aae1df6d186e5a6c (diff) | |
Fix typos “an”→“a” and a few different ones that appeared in the same search
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.rs b/src/string.rs index 0cb9d817ca2..64ae15672df 100644 --- a/src/string.rs +++ b/src/string.rs @@ -153,7 +153,7 @@ pub(crate) fn rewrite_string<'a>( wrap_str(result, fmt.config.max_width(), fmt.shape) } -/// Returns the index to the end of the URL if the split at index of the given string includes an +/// Returns the index to the end of the URL if the split at index of the given string includes a /// URL or alike. Otherwise, returns `None`. fn detect_url(s: &[&str], index: usize) -> Option<usize> { let start = match s[..=index].iter().rposition(|g| is_whitespace(g)) { |
