mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Fix doc tests
This commit is contained in:
parent
25a0ce2e9e
commit
d362fcfc1c
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,6 @@ use crate::{
|
||||||
};
|
};
|
||||||
use ra_syntax::ast::{Expr, NameRef};
|
use ra_syntax::ast::{Expr, NameRef};
|
||||||
|
|
||||||
|
|
||||||
// Assist: reorder_fields
|
// Assist: reorder_fields
|
||||||
//
|
//
|
||||||
// Reorder the fields of record literals and record patterns in the same order as in
|
// 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};
|
||||||
// ->
|
// ->
|
||||||
// ```
|
// ```
|
||||||
// struct Foo {foo: i32, bar: i32};
|
// struct Foo {foo: i32, bar: i32};
|
||||||
// const test: Foo = <|>Foo {foo: 1, bar: 0}
|
// const test: Foo = Foo {foo: 1, bar: 0}
|
||||||
// ```
|
// ```
|
||||||
//
|
//
|
||||||
pub(crate) fn reorder_fields(ctx: AssistCtx) -> Option<Assist> {
|
pub(crate) fn reorder_fields(ctx: AssistCtx) -> Option<Assist> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue