Skip to content

Commit

Permalink
Fix hir::Local doc to match with the variable name used: init
Browse files Browse the repository at this point in the history
  • Loading branch information
kraktus committed Sep 4, 2022
1 parent 50872bd commit e1bb09e
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 @@ -1273,7 +1273,7 @@ pub enum StmtKind<'hir> {
Semi(&'hir Expr<'hir>),
}

/// Represents a `let` statement (i.e., `let <pat>:<ty> = <expr>;`).
/// Represents a `let` statement (i.e., `let <pat>:<ty> = <init>;`).
#[derive(Debug, HashStable_Generic)]
pub struct Local<'hir> {
pub pat: &'hir Pat<'hir>,
Expand Down

0 comments on commit e1bb09e

Please sign in to comment.