aboutsummaryrefslogtreecommitdiff
path: root/docs/user/features.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-26 15:38:20 +0100
committerGitHub <[email protected]>2019-10-26 15:38:20 +0100
commit65e3fc8e772219bd41e182e424c928700788032a (patch)
tree97d219e21c2c4a873863e40103c7a1e5573ae5db /docs/user/features.md
parentfa4ccc5fef4f69d2e5bc93086249ba4d2ecf9ffc (diff)
parent3126152a84e08a80659d49d735d03628154564ed (diff)
Merge #2075
2075: document a couple of assists r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs/user/features.md')
-rw-r--r--docs/user/features.md51
1 files changed, 0 insertions, 51 deletions
diff --git a/docs/user/features.md b/docs/user/features.md
index acf092cec..39dab710d 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -118,57 +118,6 @@ impl Debug<|> for Foo {
118} 118}
119``` 119```
120 120
121- Change Visibility
122
123```rust
124// before:
125<|>fn foo() {}
126
127// after:
128<|>pub(crate) fn foo() {}
129
130// after:
131<|>pub fn foo() {}
132```
133
134- Fill match arms
135
136```rust
137// before:
138enum A {
139 As,
140 Bs,
141 Cs(String),
142 Ds(String, String),
143 Es{x: usize, y: usize}
144}
145
146fn main() {
147 let a = A::As;
148 match a<|> {}
149}
150
151// after:
152enum A {
153 As,
154 Bs,
155 Cs(String),
156 Ds(String, String),
157 Es{x: usize, y: usize}
158}
159
160fn main() {
161 let a = A::As;
162 match <|>a {
163 A::As => (),
164 A::Bs => (),
165 A::Cs(_) => (),
166 A::Ds(_, _) => (),
167 A::Es{x, y} => (),
168 }
169}
170```
171
172- Fill struct fields 121- Fill struct fields
173 122
174```rust 123```rust