Skip to content

Commit

Permalink
Update comment in TypeArgError
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Aug 3, 2023
1 parent 8f32c71 commit cc0b47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/type_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ pub enum TypeArgError {
// TODO It may become possible to combine this with ConstTypeError.
#[error("Type argument {0:?} does not fit declared parameter {1:?}")]
TypeMismatch(TypeArg, TypeParam),
/// Wrong number of type arguments.
// For now this only happens at the top level (TypeArgs of Op vs TypeParams of OpDef).
/// Wrong number of type arguments (actual vs expected).
// For now this only happens at the top level (TypeArgs of op/type vs TypeParams of Op/TypeDef).
// However in the future it may be applicable to e.g. contents of Tuples too.
#[error("Wrong number of type arguments: {0} vs expected {1} declared type parameters")]
WrongNumber(usize, usize),
Expand Down

0 comments on commit cc0b47b

Please sign in to comment.