aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-08-13 22:34:02 +0100
committergingerBill <bill@gingerbill.org>2019-08-13 22:34:02 +0100
commit0a63690b399da06e7de887854b38d5e95c712431 (patch)
treebe63dde9cf291fee96d9ed56fb03c205ffa2cacc /src/check_type.cpp
parent0076a4df62c5f4e2fc827d6401ae4c8a93181fb9 (diff)
Fix typo in ? array lengths error
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index a9c1d3fe3..2fa8939c4 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2548,7 +2548,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
generic_type = o.type;
}
if (count < 0) {
- error(at->count, "... can only be used in conjuction with compound literals");
+ error(at->count, "? can only be used in conjuction with compound literals");
count = 0;
}
Type *elem = check_type_expr(ctx, at->elem, nullptr);