diff options
author | Jeremy A. Kolb <[email protected]> | 2018-10-30 18:09:53 +0000 |
---|---|---|
committer | Jeremy A. Kolb <[email protected]> | 2018-10-30 18:09:53 +0000 |
commit | 93dc703011c99d52bd036f745c31388a5f9e3523 (patch) | |
tree | 08572e573f2b02fa9f32ccfd49937ff132bd8544 /crates/ra_analysis | |
parent | bc4de7128f474f75a9eff6591923657025099b74 (diff) |
Fix param number
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index 3557bb5cc..57657105b 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs | |||
@@ -460,7 +460,7 @@ impl AnalysisImpl { | |||
460 | 460 | ||
461 | if num_params == 1 { | 461 | if num_params == 1 { |
462 | if !has_self { | 462 | if !has_self { |
463 | current_parameter = Some(1); | 463 | current_parameter = Some(0); |
464 | } | 464 | } |
465 | } else if num_params > 1 { | 465 | } else if num_params > 1 { |
466 | // Count how many parameters into the call we are. | 466 | // Count how many parameters into the call we are. |