summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorIkko Ashimine <eltociear@gmail.com>2020-10-10 15:20:42 +0900
committerMarc-André Lafortune <github@marc-andre.ca>2020-10-10 02:32:21 -0400
commitdf25007046078eef2abc8f98213cb24b8c366a48 (patch)
treeb85f78ee7d219ac2240dc7be743287d8e78811af /ext/bigdecimal
parent5ea2ea74ccbfb533756595764b0e0de218e909cb (diff)
Fixed typo in comment
alway -> always
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3646
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index e0e1c68..adce9de 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -4181,7 +4181,7 @@ VpAlloc(size_t mx, const char *szVal, int strict_p, int exc)
/* at least mx digits. */
/* szVal==NULL ==> allocate zero value. */
vp = VpAllocReal(mx);
- /* xmalloc() alway returns(or throw interruption) */
+ /* xmalloc() always returns(or throw interruption) */
vp->MaxPrec = mx; /* set max precision */
VpSetZero(vp, 1); /* initialize vp to zero. */
return vp;
@@ -4357,7 +4357,7 @@ VpAlloc(size_t mx, const char *szVal, int strict_p, int exc)
nalloc = Max(nalloc, mx);
mx = nalloc;
vp = VpAllocReal(mx);
- /* xmalloc() alway returns(or throw interruption) */
+ /* xmalloc() always returns(or throw interruption) */
vp->MaxPrec = mx; /* set max precision */
VpSetZero(vp, sign);
VpCtoV(vp, psz, ni, psz + ipf, nf, psz + ipe, ne);