Skip to content

Commit 75e7bb8

Browse files
authored
Rollup merge of #101420 - kraktus:doc_hir_local, r=cjgillot
Fix `hir::Local` doc to match with the variable name used: `init`
2 parents 3a9e2ff + e1bb09e commit 75e7bb8

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
@@ -1321,7 +1321,7 @@ pub enum StmtKind<'hir> {
13211321
Semi(&'hir Expr<'hir>),
13221322
}
13231323

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

0 commit comments

Comments
 (0)