diff options
| author | Seiichi Uchida <seuchida@gmail.com> | 2017-07-20 00:35:00 +0900 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2017-07-20 00:42:00 +0900 |
| commit | a8b0a6e4c5524460ff7f181ffc0ca45758a02545 (patch) | |
| tree | 6278f068c1777c2a9e1b7461db3fcbfd8b6aed31 /src/string.rs | |
| parent | 28e32ce898f84131baa35a7db34a399727d8f15f (diff) | |
Format source codes and update tests
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 00d8c0875e5..6cb2fcddaef 100644 --- a/src/string.rs +++ b/src/string.rs @@ -83,7 +83,7 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String> if cur_end < cur_start + MIN_STRING { cur_end = cur_start + max_chars; while !(punctuation.contains(graphemes[cur_end - 1]) || - graphemes[cur_end - 1].trim().is_empty()) + graphemes[cur_end - 1].trim().is_empty()) { if cur_end >= graphemes.len() { let line = &graphemes[cur_start..].join(""); |
