Skip to content

Commit

Permalink
fix typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed May 4, 2020
1 parent 2454a68 commit 36f51f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_builtin_macros/deriving/debug.rs
Expand Up @@ -88,7 +88,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>

// Use `let _ = expr;` to avoid triggering the
// unused_results lint.
stmts.push(stmt_let_undescore(cx, span, expr));
stmts.push(stmt_let_underscore(cx, span, expr));
}
}
ast::VariantData::Struct(..) => {
Expand All @@ -112,7 +112,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
Ident::new(sym::field, span),
vec![name, field],
);
stmts.push(stmt_let_undescore(cx, span, expr));
stmts.push(stmt_let_underscore(cx, span, expr));
}
}
}
Expand All @@ -124,7 +124,7 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
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 {
pat: cx.pat_wild(sp),
ty: None,
Expand Down

0 comments on commit 36f51f9

Please sign in to comment.