Fix assist description
This commit is contained in:
parent
a4901fdcfd
commit
dc311b10f3
@ -1,6 +1,12 @@
|
||||
use std::iter::once;
|
||||
|
||||
use hir::Adt;
|
||||
use ra_syntax::{
|
||||
ast::{self, make},
|
||||
ast::{
|
||||
self,
|
||||
edit::{AstNodeEdit, IndentLevel},
|
||||
make,
|
||||
},
|
||||
AstNode, T,
|
||||
};
|
||||
|
||||
@ -8,12 +14,10 @@
|
||||
assist_ctx::{Assist, AssistCtx},
|
||||
AssistId,
|
||||
};
|
||||
use ast::edit::{AstNodeEdit, IndentLevel};
|
||||
use std::iter::once;
|
||||
|
||||
// Assist: replace_let_with_if_let
|
||||
//
|
||||
// Replaces `if let` with an else branch with a `match` expression.
|
||||
// Replaces `let` with an `if-let`.
|
||||
//
|
||||
// ```
|
||||
// # enum Option<T> { Some(T), None }
|
||||
|
@ -585,7 +585,7 @@ fn handle(action: Action) {
|
||||
|
||||
## `replace_let_with_if_let`
|
||||
|
||||
Replaces `if let` with an else branch with a `match` expression.
|
||||
Replaces `let` with an `if-let`.
|
||||
|
||||
```rust
|
||||
// BEFORE
|
||||
|
Loading…
Reference in New Issue
Block a user