Skip to content

Commit 5de684a

Browse files
committed
adressed @eddyb's comments
1 parent ad7d7ea commit 5de684a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/hir/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ pub enum Expr_ {
919919
/// Inline assembly (from `asm!`), with its outputs and inputs.
920920
ExprInlineAsm(InlineAsm, Vec<P<Expr>>, Vec<P<Expr>>),
921921

922-
/// A struct or enum variant literal expression.
922+
/// A struct or struct-like variant literal expression.
923923
///
924924
/// For example, `Foo {x: 1, y: 2}`, or
925925
/// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.
@@ -955,12 +955,12 @@ pub struct QSelf {
955955
pub enum MatchSource {
956956
/// A `match _ { .. }`
957957
Normal,
958-
/// An `if let _ = _ { .. }` (optionally with `else { .. }`
958+
/// An `if let _ = _ { .. }` (optionally with `else { .. }`)
959959
IfLetDesugar {
960960
contains_else_clause: bool,
961961
},
962962
/// A `while let _ = _ { .. }` (which was desugared to a
963-
/// `loop { match _ { .. } }`
963+
/// `loop { match _ { .. } }`)
964964
WhileLetDesugar,
965965
/// A desugared `for _ in _ { .. }` loop
966966
ForLoopDesugar,

0 commit comments

Comments
 (0)