From ea623f2d397941daad20eec7114cac01a5f86d24 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 19 Jan 2018 03:03:20 -0500 Subject: 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 --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') 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")); -- cgit v1.2.3