diff options
| author | topecongiro <seuchida@gmail.com> | 2017-06-14 20:39:07 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-06-14 20:39:07 +0900 |
| commit | b8f11a4e3c1c3a381daa19da28e3e9d686c25aa0 (patch) | |
| tree | 3f9ef49d08a54c3938f9bcd0b8f3530a5e175d98 /src/string.rs | |
| parent | c06d487712c309b1ff0197916e8148cad23cb0bd (diff) | |
Format source codes
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 6c20c18ca47..5ba273ad272 100644 --- a/src/string.rs +++ b/src/string.rs @@ -81,7 +81,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(""); |
