Skip to content

Commit

Permalink
Fix wrong comment in rustc_hir/src/hir.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
safinaskar authored Apr 19, 2023
1 parent d7f9e81 commit 0b6b72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_hir/src/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ pub enum ExprKind<'hir> {
Lit(&'hir Lit),
/// A cast (e.g., `foo as f64`).
Cast(&'hir Expr<'hir>, &'hir Ty<'hir>),
/// A type reference (e.g., `Foo`).
/// A type ascription (e.g., `x: Foo`). See RFC 3307.
Type(&'hir Expr<'hir>, &'hir Ty<'hir>),
/// Wraps the expression in a terminating scope.
/// This makes it semantically equivalent to `{ let _t = expr; _t }`.
Expand Down

0 comments on commit 0b6b72e

Please sign in to comment.