aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-19 03:03:20 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-19 03:21:47 -0500
commitea623f2d397941daad20eec7114cac01a5f86d24 (patch)
tree5e567db20d2ebbcf617f22d2107c58c5b8ede811 /src/ir.cpp
parent4b64c777ee465abb1f4a6bf2d31ba39805d5fa54 (diff)
downloadzig-ea623f2d397941daad20eec7114cac01a5f86d24.tar.gz
zig-ea623f2d397941daad20eec7114cac01a5f86d24.zip
all doc code examples are now tested
improve color scheme of docs make docs depend on no external files fix broken example code in docs closes #465
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index fae3b82481..77268327c8 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -9009,7 +9009,7 @@ static TypeTableEntry *ir_analyze_bin_op_math(IrAnalyze *ira, IrInstructionBinOp
int err;
if ((err = ir_eval_math_op(resolved_type, op1_val, op_id, op2_val, out_val))) {
if (err == ErrorDivByZero) {
- ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("division by zero is undefined"));
+ ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("division by zero"));
return ira->codegen->builtin_types.entry_invalid;
} else if (err == ErrorOverflow) {
ir_add_error(ira, &bin_op_instruction->base, buf_sprintf("operation caused overflow"));