aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers
diff options
context:
space:
mode:
authorGeoffrey Copin <[email protected]>2020-04-11 19:32:48 +0100
committerGeoffrey Copin <[email protected]>2020-04-11 19:32:48 +0100
commitd362fcfc1c52f40a64a329e90b3f213afea0e6f5 (patch)
tree0cf9590ed9666c8b97d74041fa5aebf80ca0d99e /crates/ra_assists/src/handlers
parent25a0ce2e9e59ca09665055c053d0008b7bbb9cb7 (diff)
Fix doc tests
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r--crates/ra_assists/src/handlers/reorder_fields.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/reorder_fields.rs b/crates/ra_assists/src/handlers/reorder_fields.rs
index 661c1bf54..692dd1315 100644
--- a/crates/ra_assists/src/handlers/reorder_fields.rs
+++ b/crates/ra_assists/src/handlers/reorder_fields.rs
@@ -16,7 +16,6 @@ use crate::{
16}; 16};
17use ra_syntax::ast::{Expr, NameRef}; 17use ra_syntax::ast::{Expr, NameRef};
18 18
19
20// Assist: reorder_fields 19// Assist: reorder_fields
21// 20//
22// Reorder the fields of record literals and record patterns in the same order as in 21// Reorder the fields of record literals and record patterns in the same order as in
@@ -29,7 +28,7 @@ use ra_syntax::ast::{Expr, NameRef};
29// -> 28// ->
30// ``` 29// ```
31// struct Foo {foo: i32, bar: i32}; 30// struct Foo {foo: i32, bar: i32};
32// const test: Foo = <|>Foo {foo: 1, bar: 0} 31// const test: Foo = Foo {foo: 1, bar: 0}
33// ``` 32// ```
34// 33//
35pub(crate) fn reorder_fields(ctx: AssistCtx) -> Option<Assist> { 34pub(crate) fn reorder_fields(ctx: AssistCtx) -> Option<Assist> {