Rollup merge of #101420 - kraktus:doc_hir_local, r=cjgillot

Fix `hir::Local` doc to match with the variable name used: `init`
This commit is contained in:
Dylan DPC
2022-09-05 14:15:54 +05:30
committed by GitHub

View File

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