summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Davies <deledrius@gmail.com>2023-08-01 04:47:18 -0700
committerGitHub <noreply@github.com>2023-08-01 04:47:18 -0700
commit510de82f43cb96792875ed71b8da091be0ab7244 (patch)
tree505309e43591156a31d614ba8b502bf15cd5437e
parent75f9c97deaa8378477441e07ea1782ecab6d2eca (diff)
downloadredot-engine-510de82f43cb96792875ed71b8da091be0ab7244.tar.gz
Fix typo in modulo error message.
-rw-r--r--core/variant/variant_op.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/variant/variant_op.h b/core/variant/variant_op.h
index c11f726402..fc1f7828a2 100644
--- a/core/variant/variant_op.h
+++ b/core/variant/variant_op.h
@@ -284,7 +284,7 @@ public:
const B &b = *VariantGetInternalPtr<B>::get_ptr(&p_right);
if (b == 0) {
r_valid = false;
- *r_ret = "Module by zero error";
+ *r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@@ -307,7 +307,7 @@ public:
const Vector2i &b = *VariantGetInternalPtr<Vector2i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0)) {
r_valid = false;
- *r_ret = "Module by zero error";
+ *r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@@ -331,7 +331,7 @@ public:
const Vector3i &b = *VariantGetInternalPtr<Vector3i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0 || b.z == 0)) {
r_valid = false;
- *r_ret = "Module by zero error";
+ *r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@@ -355,7 +355,7 @@ public:
const Vector4i &b = *VariantGetInternalPtr<Vector4i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0 || b.z == 0 || b.w == 0)) {
r_valid = false;
- *r_ret = "Module by zero error";
+ *r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;