Skip to content

Commit e1bb09e

Browse files
committed
Fix hir::Local doc to match with the variable name used: init
1 parent 50872bd commit e1bb09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ pub enum StmtKind<'hir> {
12731273
Semi(&'hir Expr<'hir>),
12741274
}
12751275

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

0 commit comments

Comments
 (0)