From b8f11a4e3c1c3a381daa19da28e3e9d686c25aa0 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Wed, 14 Jun 2017 20:39:07 +0900 Subject: Format source codes --- src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.rs') 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 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(""); -- cgit 1.4.1-3-g733a5