diff options
author | Edwin Cheng <[email protected]> | 2019-05-02 17:01:48 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-05-02 17:01:48 +0100 |
commit | ab91050d49e538568f0be1f9f5b8fe90e20e2ac0 (patch) | |
tree | 15bcad57546c0270dea3a86a90408bbc352b5f4e /crates | |
parent | 91745c62f82e8e7aef214edb898497f853bf9c93 (diff) |
Fix typo
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index 087a0cd63..361b1e404 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs | |||
@@ -363,7 +363,7 @@ fn expand_tt( | |||
363 | let mut has_seps = 0; | 363 | let mut has_seps = 0; |
364 | let mut counter = 0; | 364 | let mut counter = 0; |
365 | 365 | ||
366 | // We store the old var expaned value, and restore it later | 366 | // We store the old var expanded value, and restore it later |
367 | // It is because before this `$repeat`, | 367 | // It is because before this `$repeat`, |
368 | // it is possible some variables already expanad in the same subtree | 368 | // it is possible some variables already expanad in the same subtree |
369 | // | 369 | // |
@@ -373,12 +373,12 @@ fn expand_tt( | |||
373 | ctx.var_expanded = false; | 373 | ctx.var_expanded = false; |
374 | 374 | ||
375 | while let Ok(t) = expand_subtree(&repeat.subtree, ctx) { | 375 | while let Ok(t) = expand_subtree(&repeat.subtree, ctx) { |
376 | // if no var expaned in the child, we count it as a fail | 376 | // if no var expanded in the child, we count it as a fail |
377 | if !ctx.var_expanded { | 377 | if !ctx.var_expanded { |
378 | break; | 378 | break; |
379 | } | 379 | } |
380 | 380 | ||
381 | // Reset `ctx.var_expaneded` to see if there is other expaned variable | 381 | // Reset `ctx.var_expandeded` to see if there is other expanded variable |
382 | // in the next matching | 382 | // in the next matching |
383 | some_var_expanded = true; | 383 | some_var_expanded = true; |
384 | ctx.var_expanded = false; | 384 | ctx.var_expanded = false; |