Fix assist description

This commit is contained in:
Aleksey Kladov 2020-03-27 13:10:40 +01:00
parent a4901fdcfd
commit dc311b10f3
2 changed files with 9 additions and 5 deletions

View file

@ -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 @@ use crate::{
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 }

View file

@ -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