diff options
author | Florian Diebold <[email protected]> | 2019-01-12 20:58:16 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-01-12 20:58:16 +0000 |
commit | 1ed7fbfc1badd2c2a42b4dc2feb1b4bf7835d3ef (patch) | |
tree | 8e0a5cd3e1981bf0ff9615636d45566dd85fdb97 /crates/ra_ide_api/src/completion/completion_item.rs | |
parent | 5db5f5cc1dc5dfbded866b59570afc50538b9091 (diff) |
args -> params
Diffstat (limited to 'crates/ra_ide_api/src/completion/completion_item.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 9ce778487..b75d65de3 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -191,7 +191,7 @@ impl Builder { | |||
191 | ) -> Builder { | 191 | ) -> Builder { |
192 | // If not an import, add parenthesis automatically. | 192 | // If not an import, add parenthesis automatically. |
193 | if ctx.use_item_syntax.is_none() && !ctx.is_call { | 193 | if ctx.use_item_syntax.is_none() && !ctx.is_call { |
194 | if function.signature(ctx.db).args().is_empty() { | 194 | if function.signature(ctx.db).params().is_empty() { |
195 | self.snippet = Some(format!("{}()$0", self.label)); | 195 | self.snippet = Some(format!("{}()$0", self.label)); |
196 | } else { | 196 | } else { |
197 | self.snippet = Some(format!("{}($0)", self.label)); | 197 | self.snippet = Some(format!("{}($0)", self.label)); |