diff options
| author | kraktus <kraktus@users.noreply.github.com> | 2022-09-04 21:46:28 +0200 |
|---|---|---|
| committer | kraktus <kraktus@users.noreply.github.com> | 2022-09-04 21:46:28 +0200 |
| commit | e1bb09edffc4ae4fae512a73ee37aa62931d2bc8 (patch) | |
| tree | 9539ec424d64731b5b5e3f9331cb91d24a24fb84 /compiler | |
| parent | 50872bdb99c96716ee50a3b9613c395302b99767 (diff) | |
| download | rust-e1bb09edffc4ae4fae512a73ee37aa62931d2bc8.tar.gz rust-e1bb09edffc4ae4fae512a73ee37aa62931d2bc8.zip | |
Fix `hir::Local` doc to match with the variable name used: `init`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 81d544c7b96..14c51010a39 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -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>, |
