Update comment
This commit is contained in:
parent
44edf63edd
commit
be5205170c
@ -185,7 +185,7 @@ pub(crate) fn move_arm_cond_to_match_guard(acc: &mut Assists, ctx: &AssistContex
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parses an if-else-if chain to get the conditons and the then branches until we encounter an else
|
// Parses an if-else-if chain to get the conditons and the then branches until we encounter an else
|
||||||
// branch, an if-let branch or the end.
|
// branch or the end.
|
||||||
fn parse_if_chain(if_expr: IfExpr) -> Option<(Vec<(Condition, BlockExpr)>, Option<BlockExpr>)> {
|
fn parse_if_chain(if_expr: IfExpr) -> Option<(Vec<(Condition, BlockExpr)>, Option<BlockExpr>)> {
|
||||||
let mut conds_blocks = Vec::new();
|
let mut conds_blocks = Vec::new();
|
||||||
let mut curr_if = if_expr;
|
let mut curr_if = if_expr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user