Skip to content

Commit b2c0efd

Browse files
chqrliebvdberg
authored andcommitted
Compiler: fix typos on error messages
1 parent 8b21b8c commit b2c0efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

analyser/module_analyser_call.c2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn QualType Analyser.analyseCallExpr(Analyser* ma, Expr** e_ptr) {
3535
if (qt.isInvalid()) return QualType_Invalid;
3636

3737
if (origFn.isNValue()) {
38-
ma.errorRange(origFn.getLoc(), origFn.getRange(), "called object is not a function of function pointer");
38+
ma.errorRange(origFn.getLoc(), origFn.getRange(), "called object is not a function or function pointer");
3939
return QualType_Invalid;
4040
}
4141

@@ -435,7 +435,7 @@ fn QualType Analyser.analysePureCallExpr(Analyser* ma, Expr* e) {
435435
if (qt.isInvalid()) return QualType_Invalid;
436436

437437
if (origFn.isNValue()) {
438-
ma.errorRange(origFn.getLoc(), origFn.getRange(), "called object is not a function of function pointer");
438+
ma.errorRange(origFn.getLoc(), origFn.getRange(), "called object is not a function or function pointer");
439439
return QualType_Invalid;
440440
}
441441

0 commit comments

Comments
 (0)