diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-15 08:49:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-15 08:49:54 +0000 |
commit | 95f3dcd90972543dd03b4eb4c15dbb2ec5ebda9d (patch) | |
tree | 99414e941591f4e6245450c175d9095c42e7b410 /docs | |
parent | 65e31a1b5bc8879fce0acd0ea8941f33148c7804 (diff) | |
parent | 51f42db1d5704008e50ceb101c8e13bcef0524a0 (diff) |
Merge #6887
6887: Add `#` to canonical test example r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/style.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md index c8d943142..13c6a2a16 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md | |||
@@ -96,19 +96,19 @@ When using multiline fixtures, use unindented raw string literals: | |||
96 | fn inline_field_shorthand() { | 96 | fn inline_field_shorthand() { |
97 | check_assist( | 97 | check_assist( |
98 | inline_local_variable, | 98 | inline_local_variable, |
99 | r" | 99 | r#" |
100 | struct S { foo: i32} | 100 | struct S { foo: i32} |
101 | fn main() { | 101 | fn main() { |
102 | let <|>foo = 92; | 102 | let <|>foo = 92; |
103 | S { foo } | 103 | S { foo } |
104 | } | 104 | } |
105 | ", | 105 | "#, |
106 | r" | 106 | r#" |
107 | struct S { foo: i32} | 107 | struct S { foo: i32} |
108 | fn main() { | 108 | fn main() { |
109 | S { foo: 92 } | 109 | S { foo: 92 } |
110 | } | 110 | } |
111 | ", | 111 | "#, |
112 | ); | 112 | ); |
113 | } | 113 | } |
114 | ``` | 114 | ``` |