ruby-changes:63310
From: Ikko <ko1@a...>
Date: Sat, 10 Oct 2020 15:32:42 +0900 (JST)
Subject: [ruby-changes:63310] df25007046 (master): Fixed typo in comment
https://git.ruby-lang.org/ruby.git/commit/?id=df25007046 From df25007046078eef2abc8f98213cb24b8c366a48 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine <eltociear@g...> Date: Sat, 10 Oct 2020 15:20:42 +0900 Subject: Fixed typo in comment alway -> always 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) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L4181 /* 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) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L4357 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/