summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-01-06 09:34:54 -0500
committerPeter Zhu <[email protected]>2024-01-06 09:34:54 -0500
commit0831d960bf6eef9ec96d37529d555c0f43f21d0d (patch)
tree0c156db85cd5858006de5af78a7447bec130768f /numeric.c
parent9b78ef75522b1f6aa20fc81ddf06e5fb40db152d (diff)
[DOC] Fix typo in call-seq for Float#round
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 53a4450d70..42355d7760 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2449,7 +2449,7 @@ rb_int_truncate(VALUE num, int ndigits)
/*
* call-seq:
- * round(ndigits = 0, half: :up]) -> integer or float
+ * round(ndigits = 0, half: :up) -> integer or float
*
* Returns +self+ rounded to the nearest value with
* a precision of +ndigits+ decimal digits.