aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-04-30 09:55:59 +0100
committerAleksey Kladov <[email protected]>2021-04-30 09:55:59 +0100
commit1a01a5ae190ad02e44c3550ac0336b1f0983be51 (patch)
treeb779be1e0b4b4fa0a7afda5dc6d81ec11f5eb428 /crates/hir
parentcb3ef552e873a86e94a3792160fadb5d937a6f5f (diff)
internal: fix naming polarity
Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type.
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 9eb7672da..d8ccfde0c 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -1984,7 +1984,7 @@ impl Type {
1984 None 1984 None
1985 } 1985 }
1986 1986
1987 pub fn type_parameters(&self) -> impl Iterator<Item = Type> + '_ { 1987 pub fn type_arguments(&self) -> impl Iterator<Item = Type> + '_ {
1988 self.ty 1988 self.ty
1989 .strip_references() 1989 .strip_references()
1990 .as_adt() 1990 .as_adt()