fix typo in function name
This commit is contained in:
parent
2454a68cfb
commit
36f51f97c7
1 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
|
||||||
|
|
||||||
// Use `let _ = expr;` to avoid triggering the
|
// Use `let _ = expr;` to avoid triggering the
|
||||||
// unused_results lint.
|
// unused_results lint.
|
||||||
stmts.push(stmt_let_undescore(cx, span, expr));
|
stmts.push(stmt_let_underscore(cx, span, expr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ast::VariantData::Struct(..) => {
|
ast::VariantData::Struct(..) => {
|
||||||
|
@ -112,7 +112,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
|
||||||
Ident::new(sym::field, span),
|
Ident::new(sym::field, span),
|
||||||
vec![name, field],
|
vec![name, field],
|
||||||
);
|
);
|
||||||
stmts.push(stmt_let_undescore(cx, span, expr));
|
stmts.push(stmt_let_underscore(cx, span, expr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
|
||||||
cx.expr_block(block)
|
cx.expr_block(block)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn stmt_let_undescore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt {
|
fn stmt_let_underscore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P<ast::Expr>) -> ast::Stmt {
|
||||||
let local = P(ast::Local {
|
let local = P(ast::Local {
|
||||||
pat: cx.pat_wild(sp),
|
pat: cx.pat_wild(sp),
|
||||||
ty: None,
|
ty: None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue