From 1a01a5ae190ad02e44c3550ac0336b1f0983be51 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 30 Apr 2021 11:55:59 +0300 Subject: internal: fix naming polarity Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type. --- crates/ide/src/runnables.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 3eb9e27ee..f76715d84 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -304,11 +304,11 @@ fn module_def_doctest(sema: &Semantics, def: hir::ModuleDef) -> Op let name = adt.name(sema.db); let idx = path.rfind(':').map_or(0, |idx| idx + 1); let (prefix, suffix) = path.split_at(idx); - let mut ty_params = ty.type_parameters().peekable(); - let params = if ty_params.peek().is_some() { + let mut ty_args = ty.type_arguments().peekable(); + let params = if ty_args.peek().is_some() { format!( "<{}>", - ty_params.format_with(", ", |ty, cb| cb(&ty.display(sema.db))) + ty_args.format_with(", ", |ty, cb| cb(&ty.display(sema.db))) ) } else { String::new() -- cgit v1.2.3