File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ impl ModuleAST {
194194 // TODO: Use HashSet to store functions in ModuleAST.
195195 for function in & self . functions {
196196 if function. as_ref ( ) . borrow ( ) . name == other. name {
197- return Err ( QccErrorKind :: DuplicateFunction . into ( ) ) ;
197+ return Err ( QccErrorKind :: RedefinedFunction . into ( ) ) ;
198198 }
199199 }
200200
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub enum QccErrorKind {
7272 ExpectedIf ,
7373 ExpectedOpenCurly ,
7474 ExpectedCloseCurly ,
75- DuplicateFunction ,
75+ RedefinedFunction ,
7676 ExpectedIdentifier ,
7777}
7878
@@ -127,7 +127,7 @@ impl Display for QccErrorKind {
127127 ExpectedIf => "expected 'if'" ,
128128 ExpectedOpenCurly => "expected '{'" ,
129129 ExpectedCloseCurly => "expected '}'" ,
130- DuplicateFunction => "duplicate function" ,
130+ RedefinedFunction => "redefined function" ,
131131 ExpectedIdentifier => "expected a variable name" ,
132132 }
133133 } ) ( self ) )
You can’t perform that action at this time.
0 commit comments