about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-19 20:14:58 +0200
committerGitHub <noreply@github.com>2024-08-19 20:14:58 +0200
commit8dc8589d1f1fb2bfd18c4a5e23a67b3bcb13bf80 (patch)
tree7364358d65875482ffa622ec6c775ce2394cf22f
parent7b245e4506f0319baac4ad89e6ef13c4adc81448 (diff)
parentdc4766536b892e91d8d499e9da7facc3006bf922 (diff)
downloadrust-8dc8589d1f1fb2bfd18c4a5e23a67b3bcb13bf80.tar.gz
rust-8dc8589d1f1fb2bfd18c4a5e23a67b3bcb13bf80.zip
Rollup merge of #129245 - smoelius:patch-1, r=lqd
Fix a typo in `rustc_hir` doc comment

Fix a typo in a comment.
-rw-r--r--compiler/rustc_hir/src/hir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs
index 6599e703461..6c7125b75db 100644
--- a/compiler/rustc_hir/src/hir.rs
+++ b/compiler/rustc_hir/src/hir.rs
@@ -1395,7 +1395,7 @@ pub struct LetExpr<'hir> {
     pub pat: &'hir Pat<'hir>,
     pub ty: Option<&'hir Ty<'hir>>,
     pub init: &'hir Expr<'hir>,
-    /// `Recovered::Yes` when this let expressions is not in a syntanctically valid location.
+    /// `Recovered::Yes` when this let expressions is not in a syntactically valid location.
     /// Used to prevent building MIR in such situations.
     pub recovered: ast::Recovered,
 }