about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorDaniele D'Orazio <d.dorazio96@gmail.com>2018-10-15 04:18:37 +0200
committerSeiichi Uchida <seuchida@gmail.com>2018-10-15 11:18:37 +0900
commit075aa909cd2bcdc603f45e0b65119c6a7e3b2030 (patch)
treee8ef72dcced2f990a4f9493a06f1c69ccda5b4ab /src/expr.rs
parent51ddac33c59081bcd4f067633bd37443b69c60d0 (diff)
try to fix comment bad wrapping (#3099)
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 8a5b3de7a14..752fb792899 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1254,6 +1254,7 @@ fn rewrite_string_lit(context: &RewriteContext, span: Span, shape: Shape) -> Opt
     rewrite_string(
         str_lit,
         &StringFormat::new(shape.visual_indent(0), context.config),
+        shape.width.saturating_sub(2),
     )
 }