Fix `hir::Local` doc to match with the variable name used: `init`

This commit is contained in:
kraktus 2022-09-04 21:46:28 +02:00
parent 50872bdb99
commit e1bb09edff
1 changed files with 1 additions and 1 deletions

View File

@ -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>,