From 281e1071558dff3138805de49dfbb0ad91b3acd3 Mon Sep 17 00:00:00 2001 From: Geobert Quach Date: Thu, 26 Sep 2019 20:31:45 +0100 Subject: feat(assists): Make raw string unescaped --- docs/user/features.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs') diff --git a/docs/user/features.md b/docs/user/features.md index eb81cba26..fadd4cdf1 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -459,6 +459,21 @@ fn f() { } ``` +- Make raw string unescaped + +```rust +// before: +fn f() { + let s = <|>"ab\ncd"; +} + +// after: +fn f() { + let s = <|>r"ab +cd"; +} +``` + - Make usual string ```rust -- cgit v1.2.3