From df4d0b1d7354e760163134592250492228d079ef Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 Dec 2024 16:16:26 -0500 Subject: [PATCH] Clean up --- dust-lang/src/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dust-lang/src/compiler.rs b/dust-lang/src/compiler.rs index 36aacfc..e01d10d 100644 --- a/dust-lang/src/compiler.rs +++ b/dust-lang/src/compiler.rs @@ -691,8 +691,8 @@ impl<'src> Compiler<'src> { )?; } Token::Minus | Token::MinusEqual => { - Compiler::expect_addable_type(&right_type, &right_position)?; - Compiler::expect_addable_types( + Compiler::expect_subtractable_type(&right_type, &right_position)?; + Compiler::expect_subtractable_types( &left_type, &left_position, &right_type,