aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/style.md
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-12-15 08:49:22 +0000
committerAleksey Kladov <[email protected]>2020-12-15 08:49:22 +0000
commit51f42db1d5704008e50ceb101c8e13bcef0524a0 (patch)
tree7661413edef0610c87f8b2c52bd7593f760be349 /docs/dev/style.md
parent134c7563be05d120ffb45d9b971ba95735a0fcb5 (diff)
Add `#` to canonical test example
Diffstat (limited to 'docs/dev/style.md')
-rw-r--r--docs/dev/style.md8
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#"
100struct S { foo: i32} 100struct S { foo: i32}
101fn main() { 101fn main() {
102 let <|>foo = 92; 102 let <|>foo = 92;
103 S { foo } 103 S { foo }
104} 104}
105", 105"#,
106 r" 106 r#"
107struct S { foo: i32} 107struct S { foo: i32}
108fn main() { 108fn main() {
109 S { foo: 92 } 109 S { foo: 92 }
110} 110}
111", 111"#,
112 ); 112 );
113 } 113 }
114``` 114```