diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-08 10:52:22 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-08 10:52:22 +0100 |
commit | 93199002af05f3a3dfd274fe10633372f2471b73 (patch) | |
tree | 7200deed270b234ad2d4c9bcef32242dff46aaba /docs | |
parent | d9338dfa98964c0dac8fc082c3d9201807feced0 (diff) | |
parent | 31663c1368aedfdc52aaea7b54de0097c13cf889 (diff) |
Merge #1922
1922: feat(assists): Make raw string unescaped r=matklad a=Geobert
Last piece of https://github.com/rust-analyzer/rust-analyzer/issues/1730
Co-authored-by: Geobert Quach <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/features.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/user/features.md b/docs/user/features.md index 757a02838..8b7a8d7fc 100644 --- a/docs/user/features.md +++ b/docs/user/features.md | |||
@@ -459,17 +459,18 @@ fn foo<T: u32, F: FnOnce(T) -> T>() {} | |||
459 | fn foo<T, F>() where T: u32, F: FnOnce(T) -> T {} | 459 | fn foo<T, F>() where T: u32, F: FnOnce(T) -> T {} |
460 | ``` | 460 | ``` |
461 | 461 | ||
462 | - Make raw string | 462 | - Make raw string unescaped |
463 | 463 | ||
464 | ```rust | 464 | ```rust |
465 | // before: | 465 | // before: |
466 | fn f() { | 466 | fn f() { |
467 | let s = <|>"abcd"; | 467 | let s = <|>"ab\ncd"; |
468 | } | 468 | } |
469 | 469 | ||
470 | // after: | 470 | // after: |
471 | fn f() { | 471 | fn f() { |
472 | let s = <|>r"abcd"; | 472 | let s = <|>r#"ab |
473 | cd"#; | ||
473 | } | 474 | } |
474 | ``` | 475 | ``` |
475 | 476 | ||